Reply To: CMac Documentation/Tutorial

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

#3217
BrentStroh
Participant

You’ve probably already discovered this via experimentation, but yes, you can use either syntax for a function with parameters declared as:

[code:32hb5ez5]void testsub(int iVal = Parse_Int("/I=", MParm_Str))[/code:32hb5ez5]

You can use any of the following:

[code:32hb5ez5]testsub(4);

testsub("/I=4");

rm("TestSub /I=4");

-or-

TestSub /I=4 on the command map entry[/code:32hb5ez5]

Those are off the top of my head, so I suspect I’ve screwed something up, but that’s the general idea. :D