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

[code=thinbasic]
'
'------------------
'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

[/code]