vb to C#

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
 
D

Daniel Groh

try to change the () to []

Regards

--

Atenciosamente,

Daniel Groh
CTF Technologies do Brasil Ltda.
Analista Programador
Fone: 11 3837-4203
E-mail: (e-mail address removed)
 
G

Guest

I appreciate this, but something's not working right. Can u convert the
entire vb code? Thanks in advance.

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

converting vb to c# 3
vb to c# 2
VB to C# 2
VB to C# 1
To C# 3
Converting VB code to C# 2
converting vb to c# 2
VB to C# 5

Top