Retrieving non-string values
Ruslan Zasukhin
sunshine at public.kherson.ua
Wed Jan 14 22:40:41 CST 2004
on 1/14/04 9:35 PM, chuck hinkle at chuckbo at hinkles.us wrote:
>> You should use my_cursor.UShortField("VSize").value, which returns an
>> integer. Beware that calling one of these functions (like UShortField)
>> on a field of the wrong type usually results in a crash, so you might
>> consider adding an assertion before it that checks the type of
>> my_cursor.Field("VSize"), at least for debug builds.
>>
>> Charles Yeomans
>>
>
>
> I still get the Type Mismatch error when I try to compile it.
> I'm guessing that it's because I can't set an Integer variable equal to
> the result of the UShortfield command; integers are 4 bytes and vushort
> fields are 2 bytes. But what RB field type would be appropriate to use? Do
> I need to move it into a Variant?
No,
dim k as Integer
k = 5
cursor.UshortField("f").value = k
Is quite legal.
Chuck, I believe in V4RB examples present many places where is used .value
Syntax.
--
Best regards,
Ruslan Zasukhin [ I feel the need...the need for speed ]
-------------------------------------------------------------
e-mail: ruslan at paradigmasoft.com
web: http://www.paradigmasoft.com
To subscribe to the Valentina mail list go to:
http://lists.macserve.net/mailman/listinfo/valentina
-------------------------------------------------------------
More information about the Valentina
mailing list