Indigo Rose Software
  #1  
Old 08-04-2005
aniketb78's Avatar
aniketb78 aniketb78 is offline
Forum Member
 
Join Date: Jul 2005
Posts: 3
Lightbulb Function: Get Passed Arguments

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.

Code:
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
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Another tough one... Interaction between Web and AMS Agent Jones AutoPlay Media Studio 5.0 13 08-18-2005 03:10 PM
Function: Validate the Contents of an Input Object Lorne AutoPlay Media Studio 5.0 Examples 2 06-17-2004 09:47 AM
Function: Increase/Decrease Audio Playback Volume Adam AutoPlay Media Studio 5.0 Examples 0 05-31-2004 03:28 PM
Function: Resize & Center an Image kpsmith AutoPlay Media Studio 5.0 Examples 0 05-17-2004 02:36 PM
Function: Parsing Command Line Arguments Brett AutoPlay Media Studio 5.0 Examples 0 05-13-2004 09:42 AM


All times are GMT -6. The time now is 08:11 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Copyright © 2000 - 2009 Indigo Rose Corporation. All rights reserved.
Indigo Rose Software