>Hi all:
>
>How do I check to see if a form is already running on THIS machine? In the example below the 'showform' property of the form is set to 2 - as top-level form.
>
>In other words, I don't care if it is running on some other machine, but if it is running on THIS machine, I do not want a second instance. In that case, I want to kill the old instance before executing this instance.
>
>BTW, how do check if it is running on ANY machine?
>
>Thanks,
>
>Yossi
>
>
>If form 'spform' is already running
> display message asking to kill the old instance
> if Yes
> kill the old instance
> else
> get out
> endif
>endif
>
>DO FORM sp NAME spform
>READ EVENTS
>
Check _screen.Forms in HELP
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.