7
votes

I am trying to write a procedure in Inno setup code using default values for parameters, like in Pascal, like Procedure MyFunction(string1: string; string2: string = 'None'); begin //Do nothing end;

When I try to compile this, I get [...] Compiling [Code] section

Compiler Error! Line 10: Column 55: Semicolon (';') expected.

Can anyone find out what am I doing wrong?

1

1 Answers

11
votes

Default parameters, overloads, etc.. are not supported in "Pascal Script", the scripting engine that Inno Setup uses.