Hello all,
Why is it that in an .ASP page, I can write the following :
sql= "select number,name from employees"
rs,result = DBC.Execute(sql)
rs.MoveFirst()
while not rs.EOF:
ns=rs("number").value
na=rs("name").value
rs.MoveNext()
Whereas in a standalone script, I have to write :
sql= "select number,name from employees"
rs,result = DBC.Execute(sql)
rs.MoveFirst()
while not rs.EOF:
# ------ v ---- Note extra parentheses here
number=rs()("number").Value
number=rs()("name").Value
rs.MoveNext()
The extra pair of parentheses was neccessary to avoid the following error :
TypeError: too many arguments; expected 1, got 2
Thank you for your thoughts !
Kari Hardarson, Reykjavik, Iceland
_______________________________________________
ActivePython mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/activepython