Discussion Locked

Passing variables to executables

0 helpful
3 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
How do u pass a variable from one vb executable to the other? What I am doing is this, the main program logs in, the user then picks an option, the option will then launch another executable. What I now want to do is to get the user information to the called executable.

3 replies

by karlww

You can either write EXE number 2 as an ActiveX EXE or you can simply pass the data via the command line if the data is simple enough like a number/string/etc using shell like this
----
Dim iOption As Integer

Shell "myexe2.exe " & iOption
-----
myexe2 looks at the Command$ function

This discussion is closed to new replies.