Click to See Complete Forum and Search --> : Something that will prevent user from loading my program twice


AndyK
September 12th, 1999, 05:08 PM
ok look, if i run my program once, it shows up, but if i run it again it shows up again and again and again, finally i can have 100s of same program running...how do I make it so that if my program had been loaded, user can't load it again, unless he closes the original (1st one)

Lothar Haensler
September 13th, 1999, 01:27 AM
if App.PrevInstance then
end
end if

... ends the current instance if another instance is already running.

Kevin
September 13th, 1999, 02:34 AM
AndyK-

The App.PrevInstance tells if there is already a copy of the program running.

Use it like:
If App.PrevInstance then
End
End If

I am not sure if this works properly on NT.

Kevin

kevin
September 13th, 1999, 02:34 AM
AndyK-

The App.PrevInstance tells if there is already a copy of the program running.

Use it like:
If App.PrevInstance then
End
End If

I am not sure if this works properly on NT.

Kevin