Charles Pegge
21-08-2009, 18:30
Macro Block Parameters
Pass block of data as single parameter: (enclosing the data between brackets)
Oxygen Update http://community.thinbasic.com/index.php?topic=2517
'
'------------------
'MACRO BLOCK PARAMS
'==================
uses "oxygen","file"
dim src as string
src="
#basic
'
def pr print %1
pr `Hello`
pr ( `Hello` ` ` `Sky!` )
pr ( 21*2 )
terminate
"
'msgbox 0,o2_prep src
o2_basic src
if len(o2_error) then msgbox 0,o2_error
o2_exec
Pass block of data as single parameter: (enclosing the data between brackets)
Oxygen Update http://community.thinbasic.com/index.php?topic=2517
'
'------------------
'MACRO BLOCK PARAMS
'==================
uses "oxygen","file"
dim src as string
src="
#basic
'
def pr print %1
pr `Hello`
pr ( `Hello` ` ` `Sky!` )
pr ( 21*2 )
terminate
"
'msgbox 0,o2_prep src
o2_basic src
if len(o2_error) then msgbox 0,o2_error
o2_exec