Passing parameters into a VB 6.0 program

I need to create exe. file in VB 6.0, which would be run from command line and would be able to take a few parameters. Could you, please give just any simple code sample.
istreltsovaAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

vettrangerCommented:
Use the "Command" function. It accepts command line parameters. VB help completely describes this, plus gives a sample program that shows how to parse the command line if you're going to have multiple parameters on it.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
mark2150Commented:
IF INSTR(UCASE(COMMAND$), "/?") > 0 THEN ...

M
0
tg_georgeCommented:
run the vb program with the options
eg
myvp.exe hello istreltsova

In your application
dim Strparm as string
Strparm = command
Msgbox strparm

' strparm will contain
'  hello istreltsova



0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic Classic

From novice to tech pro — start learning today.