Something that will prevent user from loading my program twice
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)
Re: Something that will prevent user from loading my program twice
if App.PrevInstance then
end
end if
... ends the current instance if another instance is already running.
Re: Something that will prevent user from loading my program twice
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
Re: Something that will prevent user from loading my program twice
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