----- Original Message -----
From: "Octave Julien" <[EMAIL PROTECTED]>
To: "REALbasic NUG" <[email protected]>
Sent: Friday, March 23, 2007 4:33 PM
Subject: RBScript... again

> dim test as new cTexte '(cTexte is a custom class)
>
> When I click the run pushButton, I get a compiler error, with no
> number, and no new cTexte is instantiated.
>

That is because cTexte is not a class you defined in RBScript, so you get an 
error; plus, RBScript is not able to instance objects of classes defined 
from the host application.

> If I write :
>
> EditFieldTest.text="That's a test"
>
> I also get an error, and nothing happens.
>

That is because "That's a test" isn't valid in the syntax of RBScript, that 
turns out to be very similar to the syntax of REALbasic, even if there are 
many differences.

You should check the documentation given together REALbasic, and you will 
see it's not hard to start.
Just a note: the context parameter requires an object that will be used from 
the script. I mean, all the methods and proprierties of the objects will be 
global for the script you run.

Best Regards.
--
~Kiam 

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to