Mon
31
Jul '06
from Tkinter import *
root = Tk()
w=Button(root,text=“Pooooooi!”)
w.pack()
root.mainloop()
from Tkinter import *
root = Tk()
w=Button(root,text=“Pooooooi!”)
w.pack()
root.mainloop()
Private Sub CommandButton1_Click()
Set con = CreateObject(“adodb.connection”)
Set rs = CreateObject(“adodb.recordset”)
con.Open “Provider=sqloledb; Data Source=db-serv;Initial Catalog=test; User Id=admin; Password=admin;”
rs.Open “select *from test2″, con
i = 2
Do While Not rs.EOF
Cells(i, 2) = rs(“categorie”)
rs.movenext
i = i + 1
Loop
rs.Close
Set rs = Nothing
Set con = Nothing
End Sub
<div id=“divTest” style=“position:absolute; width:200px; height:115px; z-index:1; left: 149px; top: 43px; background-color: #CCCCCC; layer-background-color: #CCCCCC; border: 1px none #000000;”>test div </div>
<span id=“spanTest”>This is a span</span>
<p>
<input type=“submit” name=“Submit” value=“Hide” onClick=“document.getElementById(’divTest’).style.visibility=’hidden’”/>
<input type=“submit” name=“Submit” value=“Visible” onClick=“document.getElementById(’divTest’).style.visibility=’visible’”/>
</p>
<p>
<input type=“submit” name=“Submit” value=“span Hide” onClick=“document.getElementById(’spanTest’).style.visibility=’hidden’”/>
<input type=“submit” name=“Submit” value=“span Visible” onClick=“document.getElementById(’spanTest’).style.visibility=’visible’”/>
</p>
DECLARE @mycur CURSOR
DECLARE @test VARCHAR(10)
SET @mycur = CURSOR
FOR
SELECT nummer FROM mytable
OPEN @mycur
FETCH NEXT FROM @mycur INTO @test
WHILE @@FETCH_STATUS = 0
BEGIN
PRINT @test – sample statements
FETCH NEXT FROM @mycur INTO @test
END
DEALLOCATE @mycur
sp_renameDb olddbname, newdbname
Leave a passing comment »