Login | Register   
LinkedIn
Google+
Twitter
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


Tip of the Day
Language: Visual Basic
Expertise: Beginner
Apr 7, 1999

Execution parameter

Question:
I want to run my VB5 app with different parameters, for example, like this:
c:\Myapp.exe -C
to run in a mode I want to call "config-mode." Is this possible with VB5?

Answer:
It sure is! The Command function returns the argument portion of the command line. So in your code, you can check the command line arguments to determine which functionality to provide.

To simulate command line arguments when running the project in the IDE, enter the arguments into Project\ Properties\Make\Command Line Arguments.

DevX Pro
 
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

Sitemap
Thanks for your registration, follow us on our social networks to keep up-to-date