Are you asking if a function can be passed as a parameter to a procedure? If so, then this cannot be done. You would need to save the result of the function to a variable, then pass that value when calling the procedure.
Main does not take any parameters per se, but if you run it via the command line, you can pass values into it via the predefined global variables. Here is a snippet from my site discussing this:
You can pass variables to Procomm Plus via the command line used to start the application. For example, the command line "C:\Program Files\Symantec\Procomm Plus\Programs\PW5.exe myscript.wax test" will launch Procomm Plus, execute the script myscript.wax and place the word test in the predefined global string variable s0. Up to 10 values may be passed in. The values will be placed in the global strings s0 through s9, and the number of passed variables will be placed in the predefined global integer i0. Your script can then use the atoi, atol, or atof commands to convert the string values to integers, longs, or floats, if necessary.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.