G
Guest
I am converting a vb code to c#. I already converted most of the code except
for:
lpn = rsLPN(0)
How do you convert the above code. It's probably easy but I cant figure it
out. The entire code follows:
sLPN = "SELECT Convert(last_project_no,'US7ASCII') FROM pa_control FOR
UPDATE "
Set rsLPN = db.Execute (sLPN)
While not rsLPN.EOF
Session("LPN")=""
lpn = rsLPN(0)
rsLPN.MoveNext
wend
' STORE LAST_PROJECT_NUMBER IN A VARIABLE CALLED "lpn"
lpn = lpn + 1
Session("LPN") = lpn
for:
lpn = rsLPN(0)
How do you convert the above code. It's probably easy but I cant figure it
out. The entire code follows:
sLPN = "SELECT Convert(last_project_no,'US7ASCII') FROM pa_control FOR
UPDATE "
Set rsLPN = db.Execute (sLPN)
While not rsLPN.EOF
Session("LPN")=""
lpn = rsLPN(0)
rsLPN.MoveNext
wend
' STORE LAST_PROJECT_NUMBER IN A VARIABLE CALLED "lpn"
lpn = lpn + 1
Session("LPN") = lpn