Reply To: CMac Documentation/Tutorial

Product Compare Forums Multi-Edit Suggestions CMac Documentation/Tutorial Reply To: CMac Documentation/Tutorial


Passing parameters to macros. Sometimes I can do it as normally expected. Example:

void suba(int i)


void testsuba()

This works, however I can not assign a key to function suba which passes the value 4 to suba. Instead I’m supposed to do

void suba(int IntVal = Parse_Int(“/I=”, MParm_Str))


and then define the key to execute the command: “Test /I=4”

though now this leaves me wondering if I can still call suba as testsuba() above does, via suba(4);, or do I have to change the call to suba(“/I=4”)

This is the kind of stuff that needs documenting.