PDA

View Full Version : Function: Get Passed Arguments


aniketb78
08-04-2005, 10:25 AM
Here is a little global function I wrote to return an argument to the caller. I have also included another function that uses the aforementioned function. Hope this helps someone.

function gGetArg(nArgNo)
Debug.Print(_CommandLineArgs[nArgNo]);
Debug.Print("\r\n");
return _CommandLineArgs[nArgNo];
end

function gIsSilentInstall()
local llSilent = false;
Debug.Print(Table.Count(_CommandLineArgs));
Debug.Print("\r\n");
if Table.Count(_CommandLineArgs) >= 2 then
llSilent = (gGetArg(1) == "/S");
end
return llSilent;
end