V4RB Need help with Retrieving Method Results

Mike Albert malbert at asia.apple.com
Tue Feb 25 23:30:02 CST 2003


Thanks Ruslan,

Do I need to define the in the RB code the formula's for that method?  I already did this in VAPP and they're working fine from AppleScript and within VAPP.

These DB's were previously created in VAPP and have been used for many months with AppleScript.
I am unable to get any values from the method fields.

I just looked through the Test example and tried the following :

vCategory = vConfigRecordsCursor.StringField("category").value

I still get the exception error on this.  I am guessing I am doing something really wrong....I just can't figure out what!

Regards
Mike


On Tuesday, February 25, 2003 11:08 PM, Ruslan Zasukhin <sunshine at public.kherson.ua> wrote:
>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
>-------------------------------------------------------------
>
>_______________________________________________
>Valentina mailing list
>Valentina at lists.macserve.net
>http://lists.macserve.net/mailman/listinfo/valentina
>



More information about the Valentina mailing list