Object Rexx (“ooRexx”) vs. MS Visual Basic Script ("VBScript")
ooRexx
Message operator
~ (Tilde)
Continuation character
, (comma) or – (dash)
String concatenation
(space between strings)
|| (2 vertical bars)
var1"some string"var2 (abuttal)
Defining variables
Just denote the name in an assignment
VBScript
. (dot)_ (underline)& (ampersand)DIM var_namesooRexx
Line comment
-- (2 dashes)
Block (multi-line) comments
ooRexx
Calling a procedure
Calling a function
or:
ooRexx
Defining a procedure
or:
ooRexx
Defining a function
or:
VBScript
Defining a function
Func proc1(a1, a2, a3)
proc1=a1 & a2 & a3
End FuncooRexx
Address structure/object:
or (to save a little bit of typing):
' VBScript: "counter.vbs"
dim MyVar
Set MyVar = createObject("Some.Counter")
wscript.echo "Counter: " & MyVar.counter
call wscript.echo( "Counter: " & MyVar.increment )WU
Prof. Mag. Dr. Rony G. Flatscher
Welthandelsplatz 1
1020 Wien/Vienna
Austria/Europe
www: www.wu.ac.at