V4RB Need help with Retrieving Method Results
Mike Albert
malbert at asia.apple.com
Tue Feb 25 22:31:31 CST 2003
Hi All,
I am hoping someone can provide me with a quick guidance on whether it is possible to retrieve the value of BaseObject method calculation.
I have done numerous tests with real fields in a BaseObject and also several calculation methods using these fields and am unable to get the methods value.....my code successfully retrieves field values from the current record of a Cursor but fails with a "NilObjectException" error.
Using VAPP and AppleScript I am able to successfully retrieve a method field so I know that the method definition is correct.
As an example I have defined to properties of a VBaseObject :
vSubfamily as Vstring
vCategory as Vstring
The below stastement works fine as the the "itemsubfasmily" field is of type String[8]
vSubfamily = vConfigRecordsCursor.Field("itemsubfamily").GetString
The next statement is where I get the exception error. "category" is a method of type String[8]
vCategory = vConfigRecordsCursor.Field("category").GetString
I have tested the above code using V4RB 1.9.7
regards
Mike
More information about the Valentina
mailing list