Hello, I was wondering if it was possible to declare functions in WDPro. I am not sure I use the right terms so let me explain:
I was wondering if there was a way I could write a macro that would have arguments so that when I call the macro I specify (or not) values that the macro will use. Let's figure a script that changes the tint of all customscript on a given page, rather than calling the macro the following way:
WDMacro,changetint
And have to specify the color values in the script itself or in variables I would simply write:
WDMacro,changetint,255,0,0
the macro changetint has been created so that it knows there are 3 arguments, in the script itself it would look like:
WDCustomScriptTint,arg1,arg2,arg3
Makes sense?
I sure hope there is a way to do this it would make my code so much cleaner and easily reusable.
Thanks, regards.