Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do you pass parameters to a VB code? 2

Status
Not open for further replies.

mustang98

Technical User
Dec 7, 2004
12
US
I have seen in the past where a programmer developed an executable program with VB 6.0 and when he called this executable from another program to run he passed it parameters, ie: StartApp "Test.exe" 300 200
Where Test is the name of the executable and the 300 and 200 would be the coordinates of where to pop up the vb window. Does anyone know how to do this?
Thanks!
 
Command gave him access to the command line parameters.
 
You can test this when running your code in the VB IDE. Here's how...

1. Click Project -> References
2. Click on the make tab
3. Enter something in to the 'Command Line Arguments' text box.

Now, when you run the project, there will be a value in the Command$ variable.

-George

Strong and bitter words indicate a weak cause. - Fortune cookie wisdom
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top