[V4MD 2] gCursor.RecID

info at vallemediatime.com info at vallemediatime.com
Fri Apr 8 11:02:53 CDT 2005


I use a simple SELECT in SQL way,

but now, with this code I am finally successful to obtain the record's RecID
string ,
but... how can you see the line code are increased  :-(
not good...

repeat with i = 1 to max
currRec = value(member("dRecPos").text)
fieldsValue = gCursor.getRecord(currRec)
ID_Student = getAt(fieldsValue, 1)
myStudent = string(ID_Studente) && member("sF2").text && member("sF3").text
myList.append(myStudent)
gS_Manager.mMoveNext()
end repeat

if  I had  <gCursor.RecID> the same code can become:

repeat with i = 1 to max
currRec = value(member("dRecPos").text)
myStudent = string(gCursor.RecID) && member("sF2").text &&
member("sF3").text
myList.append(myStudent)
gS_Manager.mMoveNext()
end repeat

Other way... in SQL?
Paolo



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


> On 4/8/05 10:51 AM, "info at vallemediatime.com" <info at vallemediatime.com>
> wrote:
>
> > I think that you don't understand me :-)
> > I don't need to use SELECT
> > I need only RecID string
> >
> > in V1.1   (e.g.  with moveNext)
> > put getField(gCursor, "RecID")
> > -- "1"
> > -- "2"  etc.
>
> > in V2
> > put gCursor.RecID
> > -- <Null>
>
> Hmm, if you do not use SELECT, then how you get Cursor ???
>
> Or may be you talk about API way ?
> And may be you ask about Vtable class ?
>
> For API way should work
>
>     tblPerson.Field( "RecID" ).GetString()
>
>
> > If possible, can you add this method in v2 too?
>
> I believe it is here.
>
> Just clarify what way you use?
> If API then why you write gCursor in code ??
>
>
> --
> 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.5 - Release Date: 07/04/2005
>
>



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



More information about the Valentina mailing list