V4RB Need help with Retrieving Method Results

Ruslan Zasukhin sunshine at public.kherson.ua
Tue Feb 25 17:08:25 CST 2003


on 2/25/03 4:31 PM, Mike Albert at malbert at asia.apple.com wrote:

> 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

Hi Mike,

But have you define in RB code formulas for that method in constructor call?
I just do not see where mistake.

Check please TEST project for example of methods usage

-- 
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://listserv.macserve.net/mailman/listinfo/valentina
-------------------------------------------------------------



More information about the Valentina mailing list