vb to c#

G

Guest

Hello!

I need help in converting the vb code below to c#. Thanks in advance.

' SELECT THE LAST_PROJECT NUMBER FROM PA_CONTROL
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") = lp

This appears at the start of the file:

<!-- #INCLUDE VIRTUAL="/msado/adovbs.inc" -->
 
P

Peter van der Goes

Newbie said:
Hello!

I need help in converting the vb code below to c#. Thanks in advance.

' SELECT THE LAST_PROJECT NUMBER FROM PA_CONTROL
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") = lp

This appears at the start of the file:

<!-- #INCLUDE VIRTUAL="/msado/adovbs.inc" -->
Conversion from ASP to ASP.NET?
Were you looking to just convert from VB to C#, still using ADO, or convert
the database interaction technology to ADO.NET?
 
G

Guest

yes, it is being converted from asp to asp.net, convertion from VB to C#
only , still using ADO.
 

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# 4
VB to C# 1
This C# code to VB 2
Tricky VB to C# conversion 7
VB's CreateObject for C# 7
vb module equivelent in C# 7
VB to C# 3

Top