RBScript
It is proposed that this article be deleted because of the following concern:
If you can address this concern by improving, copyediting, sourcing, renaming, or merging the page, please edit this page and do so. You may remove this message if you improve the article or otherwise object to deletion for any reason. Although not required, you are encouraged to explain why you object to the deletion, either in your edit summary or on the talk page. If this template is removed, do not replace it. The article may be deleted if this message remains in place for seven days. Please check the history to see when this template was added. Find sources: "RBScript" – news · newspapers · books · scholar · JSTOR Nominator: Please consider notifying the author/project: {{subst:proposed deletion notify|RBScript|concern=This article clearly ststes that RBScript cannot be used without Realbasic. RBScript is a single feature of a commercial product Realbasic and does deserve a seperate article on Wikipedia. In order to even use RBScript you must download and pay for a Realbasic licence from Real Software. This article serves no purpose than to act as an additional page from which to shill a commercial product Realbasic. Just try to image what Wiki would look like if every product mentioned on wiki was permitted to have a seperate wiki page for every single feature. This article is entirely unethical as it serves no purpose other than to draw attention to Realbasic a commercial product!}} ~~~~ |
REALbasic icon | |
Developer(s) | REAL Software, Inc. |
---|---|
Operating system | Mac OS X, Microsoft Windows, Linux |
Type | Scripting languages |
License | Proprietary |
Website | REAL Software, Inc |
RBScript is a scripting language similar to REALbasic, which shares some basic features, like to be object oriented, support modules and almost the same datatypes (apart the ones introduced with the last REALbasic version, used mainly for compatibility with some C API). It's a reduced version of REALbasic, which implements just the basic string and number functions, mainly used to script the applications written with REALbasic, and lately used also in the REALbasic IDE (officially from the 2006r1 version).
Compared to the different scripting languages that can still be used with REALbasic (thanks to the ability it offers to call C API), RBScript can be better integrated into REALbasic applications by the possibility it has to call the methods and to use the properties of the object passed to the script parser and compiler.
RBScript cannot be used outside REALbasic applications and cannot be installed separately from an application made with REALbasic.
Example Code
Here's a sample code that asks the host program a number and returns it doubled:
Dim Value As Integer Value = Val(Input("Which number?")) Print(Str(Value*2))
It's up to the host program to decide how to implement the callback methods called from Input() and Print(): RBScript just expects the first method to return a string and accept a string parameter, and the second one to accept a string parameter. Usually, the program would prompt the user presenting the string passed from the script, and returning the user input to the hosted script.