Skip to Main Content
VB.Net Web Developer's Guide
book

VB.Net Web Developer's Guide

by Syngress
September 2001
Intermediate to advanced content levelIntermediate to advanced
608 pages
23h 46m
English
Syngress
Content preview from VB.Net Web Developer's Guide
652 Chapter 14 • Upgrading Visual Basic Applications to .NET
objCn.ConnectionString = strSQLConn
objCn.Open()
objRs.Open("Select au_lname from authors", objCn,
ADODB.CursorTypeEnum.adOpenForwardOnly,
ADODB.LockTypeEnum.adLockReadOnly)
While Not objRs.EOF
Debug.WriteLine(objRs(0).Value)
objRs.MoveNext()
End While
objRs.Close()
objCn.Close()
Using Date Data Type
In Visual Basic 6.0, you could use the Double data type to store and manipulate
dates.This is not supported in Visual Basic .NET, however, because dates are not
stored as doubles.Therefore, the following code is invalid in Visual Basic .NET:
Dim dblVal as Double
Dim dtVal as Date
dtVal = now
dblVal = dtVal ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

VB.NET Core Classes in a Nutshell

VB.NET Core Classes in a Nutshell

Budi Kurniawan, Ted Neward

Publisher Resources

ISBN: 9781928994480