converting vb to c#

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I'm having trouble converting the following, pls. help. 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
 
Code was written by someone else. Have no idea if its ado.net or ado lib.,
but I think it's not ado.net bec. the app. is not .net.
 
This might gives us a clue: The following appears at the start of the file.

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

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

vb to c# 2
vb to C# 4
VB to C# 1
converting vb to c# 2
Cannot Pass Session Variables from C# to VB-ASP? 1
This C# code to VB 2
Convert VB to C# (Redim array question) 3
UBound conversion from vb.net to c# 2

Back
Top