Retrieving non-string values

Ruslan Zasukhin sunshine at public.kherson.ua
Wed Jan 14 23:56:50 CST 2004


on 1/14/04 11:48 PM, chuckbo at chuckbo at hinkles.us wrote:

>> 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. 
>> 
>> 
> 
> Yes, you're right, I've been doing that without any problems. My problem is
> going the other way, trying to set k = to cursor.ushortfield("f"). There's
> no .VALUE property for the cursor, and if I just use
> 
>   K = cursor.UshortField("f")
    ^^^^^^^^^^^^^^^^^^^^^^^^^   but this is NOT CORRECT!
                  you try assign into integer variable the Valentina field.


Must be 

    K = cursor.UshortField("f").value


> then I get a type mismatch. Does it mean that I can't move a UShort field
> into an RB Integer variable?

You can of course.

> Do I have to go through the program and
> redimension this variable as vushort everywhere?

no

-- 
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