Win rb2005r4 Val 2.2 API set/read a VField
Ruslan Zasukhin
sunshine at public.kherson.ua
Fri Feb 24 14:46:00 CST 2006
On 2/24/06 12:02 AM, "Damon Pillinger" <daisychain at iinet.net.au> wrote:
Hi Damon,
> Am using this to populate a VField (yes doing it the API way) of type
> String(40) call vt.CreateStringField("age",40,EVFlag.fNullable)
>
> vt.Field("age").Value="32"
> call vt.AddRecord()
Try please
vt.StringField("age").Value = "32"
> but when I recall it I only get "3"
>
> s="Select * from Person"
> vr=db.SqlSelect(s)
>
> for i= 1 to vr.RecordCount
> vr.Position=i
> s=vr.Field("age").GetString
> ListBox4.AddRow s
> next
>
>
> Am I setting the value incorrectly or reading it incorrectly?
Vstudio can answer you.
> Also this is the fastest way (the API way) for Valentina isn't it?
Fastest is Class-way.
In above code you yet spend time to get field:
vt.Field("age").
In Class way you already have it
fldAge.
--
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]
More information about the Valentina
mailing list