Click to See Complete Forum and Search --> : Is pointer Supported?


Greenu Sharma
July 14th, 2001, 06:21 AM
Will any one brief me about the use of pointers in VB?

Thanks in advance
Greenu

cksiow
July 14th, 2001, 07:42 AM
unfortunately, VB doesn't support pointer at all. if need, some operation might be achieved by RtlMoveMemory


HTH

cksiow
http://vblib.virtualave.net - share our codes

DLARLICK
July 14th, 2001, 10:22 AM
The previously reply might have answered your question.

But be aware that you can use the SET statement for object references. What is the difference between...

Dim rsProject AS ADODB.Recordset
and
Dim rsProject AS New ADODB.Recordset

The second declaration is instantiating a new object of type ADODB.Recordset, where as the first declaration is only creating a object reference for the ADODB.Recordset.

One thing I like to do is create a function that calls stored procedures as type ADODB.Recordset then use the SET statement to set the recordset object reference to the function call.

SET rsProjects = modGetData.Projects("ALL")