[V4MD 2] gCursor.RecID

info at vallemediatime.com info at vallemediatime.com
Fri Apr 8 09:17:50 CDT 2005


Hi Ruslan,

> > myStudent = string(gCursor.RecID) && member("sF2").text &&
>                     ^^^^^^^^^^^^^^^^^
>                     this works ???

oh, sorry, I've copyed a my test loop from v2 ...
this is the right code that works in v1.1:

ID_Student = getField(gCursor, "RecID")
myStudent = string(ID_Student) && member("sF2").text && member("sF3").text

> Actually you should use this way
>     gCursor = db.SqlSelect( "SELECT RecId, f1, f2 ... FROM T" )
this is not good for me, I need to get f1 to f2 strings for make a drop-menu
like:
1 Zasukhin Ruslan
2 Gomon Igor
.... an do son

other way, for get directly the (gCursor, "RecID") like string?

Tnx Paolo


----- Original Message -----
From: "Ruslan Zasukhin" <sunshine at public.kherson.ua>
To: <valentina at lists.macserve.net>
Sent: Friday, April 08, 2005 8:06 AM
Subject: Re: [V4MD 2] gCursor.RecID


> On 4/8/05 1:37 AM, "info at vallemediatime.com" <info at vallemediatime.com>
> wrote:
>
> Hi Paolo,
>
> > Hi all list
> >
> > I don't find in the docs how get the <gCursor.RecID>
> > in v1.1 this code works:
> >
> > repeat with i = 1 to recCount
> > myStudent = string(gCursor.RecID) && member("sF2").text &&
>                     ^^^^^^^^^^^^^^^^^
>                     this works ???
>
> > member("sF3").text
> > myList.append(myStudent)
> > gS_Manager.mMoveNext()
> > end repeat
> >
> > for gCursor.RecID I get Null value
> > How can I do this in v2?
>
> Actually you should use this way
>
>     gCursor = db.SqlSelect( "SELECT RecId, f1, f2 ... FROM T" )
>
> And now you can reach RecID to any field of cursor.
> RecID field have ULONG type.
>
>
> --
> Best regards,
>
> Ruslan Zasukhin
> VP Engineering and New Technology
> Paradigma Software, Inc
>
> Valentina - Joining Worlds of Information
> http://www.paradigmasoft.com
>
> [I feel the need: the need for speed]
>
>
> _______________________________________________
> Valentina mailing list
> Valentina at lists.macserve.net
> http://lists.macserve.net/mailman/listinfo/valentina
>
>
>
> --
> No virus found in this incoming message.
> Checked by AVG Anti-Virus.
> Version: 7.0.308 / Virus Database: 266.9.4 - Release Date: 06/04/2005
>
>



-- 
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.308 / Virus Database: 266.9.4 - Release Date: 06/04/2005



More information about the Valentina mailing list