question about Shell Function

C

cinnie

greetings

The VB help for 'Shell Function' give the following example:
Dim RetVal 'Variant (Double) representing the program's task ID if
successful
RetVal = Shell("C:\WINDOWS\CALC.EXE", 1) ' Run Calculator.

I attached this code to a command button just to experiment. Why does it
produce a different value each time? The last 4 clicks produced values of
3500, 2756, 1616 and 3956.

thanks
 
S

Stefan Hoffmann

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top