I'm having some problems passing particular object types to subroutines.
I've got the following
Code: Select all
Sub Test(obj)
/echo ${obj.ID}
/returnI'm basically trying to pass a "spawn" to the routine but i think tostring is being called on the object before it gets passed in. I looked a the documentation and see you can delcare the var type like
Code: Select all
Sub Test(int obj)
/returnCode: Select all
Sub Test(spawn obj)Code: Select all
Sub Main
/call Test ${Target}
/return
Sub Test(obj)
/target id ${obj.ID} // No such 'string' member 'ID'
/returnThank you.
Steve


