Newbie question on RecID

Frank Schima macsforever2002 at yahoo.com
Wed Jan 22 09:44:50 CST 2003


Hi Rick,


--- Rick Robinson <rickrobinson at attbi.com> wrote:
> I guess it is obvious I'm using V4RB.
> 
> On Wednesday, January 22, 2003, at 10:07  AM, Rick Robinson wrote:
> 
> > I need to access the RecID of my records. How do I do that? How do I 
> > create the characters that look like << and >>? Is this correct > syntax?
> >
> > rnumber.text = str(myCursor.ULongField("<<RecID>>").value)

You must have RecID in your SELECT clause. Then you simply say:

Dim i as integer
i = myCursor.ULongField("RecID").value

if you want a String, then you can say:

Dim s as string
s = myCursor.Field("RecID").GetString


-Frank


=====
Frank Schima                <mailto:frank at labrecyclers.com>
Lab Recyclers Inc.          <http://www.labrecyclers.com/>
Gaithersburg, MD USA        <http://www.ci.gaithersburg.md.us/>

__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com


More information about the Valentina mailing list