Quoting GregO <[EMAIL PROTECTED]>:

>> So I'm guessing that I'd need to implement my own date class to be
> able to do this or make a property in the context that normally holds
> the current date and I'll access the properties from there....

A property as a Date class won't make sense to your script.

Functions which pass on calls to an internal Date property will work,  
providing their parameters are primitive types like numbers and strings.

Think of RBScript as a very simple language.

It allows you to create classes and functions *within* the language.

It can talk to the outside world via your context object.

That outside interface consists of function calls and the exchange of  
primitive data types.

Your context object exposes properties of primitive type and they  
appear as global variables in the script.

Similarly your context object exposes methods to the script and they  
appear as simple global functions in the script.

My ScriptPictureEffects demo has functions that forward calls to the  
Graphics 2D drawing API and the PictureEffects plugin API (a bit out  
of date now) so you can get a better idea of a complex script context.

http://www.oofile.com.au/downloads.html#DownloadREALbasic
_______________________________________________
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