I need a VB function with one Parameter to use it whereaver i want in softimage ( Like Utility Function) , so I simplify what i need in this function just to illustrate my problem ,
Code: Select all
function XSILoadPlugin( in_reg )
in_reg.Author = "ZZZ"
in_reg.Name = "My ZZZ Commands"
in_reg.Major = 1
in_reg.Minor = 0
in_reg.RegisterCommand "MyGlobalMessage","MyGlobalMessage"
'RegistrationInsertionPoint - do not remove this line
XSILoadPlugin = true
End Function
'--------------------------------------------
Function MyGlobalMessage_Execute( ZZ )
Logmessage ZZ
End Function
Code: Select all
ZZ = "Hi ...."
MyGlobalMessage_Execute( ZZ )
Code: Select all
Type mismatch: 'MyGlobalMessage_Execute' - [line]