question about Shell Function

  • Thread starter Thread starter cinnie
  • Start date Start date
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
 
Back
Top