PARAMETERS uArg1, uArg2, uArg3 && as many as you think you might need * Save the parameters in an array for later use in this case LOCAL nParmCount, i DECLARE aParms[1] aParms = NULL nParmCount = PCOUNT() FOR i = 1 TO nParmCount DECLARE aParms[i] aParms[i] = EVAL('uArg'+ALLTRIM(STR(i)) ENDFOR IF nParmCount > 0 * Pass the array of parameters to your command line parser or whatever ENDIF