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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

??? Passing Arguments to BO -VBA ???

Status
Not open for further replies.

BusObj

MIS
Apr 23, 2001
8
US
Hello guys!
One of our external applications has to pass a "value" to our BO application.
This external application is calling BusObj.exe from command line.

The vb code (in the visual basic editor) for the Bo Document has a variable that has to be assigned this "value"

> Busobj.exe -user guest -pass guest -online

Can I pass this dynamic "value" (that has to be assigned to one of the visual basic variables in BO) along with the command line arguments.. If not, How can i achieve this.. I cant also take the variable value in a flat file, coz, flat file cant be dynamically changed.
Can any sharp brains help me out ?????
Thanks
kkay
 
I found this information when looking for help in Business Objects. It sounds as if you could pass the arguments through your command line in VB.

**********
Returns the argument portion of the command line used to launch Microsoft Visual Basic or an executable program developed with Visual Basic.

Syntax
Command
Remarks

When Visual Basic is launched from the command line, any portion of the command line that follows /cmd is passed to the program as the command-line argument. In the following example, cmdlineargs represents the argument information returned by the Command function.

VB /cmd cmdlineargs

For applications developed with Visual Basic and compiled to an .exe file, Command returns any arguments that appear after the name of the application on the command line. For example:

MyApp cmdlineargs

To find how command line arguments can be changed in the user interface of the application you're using, search Help for "command line arguments."
**********

To find the topic and get additional help, go to the index and type in command and display commmand function and you should see the same information.

Beckyl
 
Becky is right. You can pass the argument on a dos command line or as part of the shortcut.

In the application you need to query Command() to read the value passed in.

If you wanted to pass the value in a flat file, you would need to code the application to read the flat file and get the value.

For ease-of-usego with the command line argument option. For flexibility go with the flat file option.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top