Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Foxpro screen exist

Status
Not open for further replies.

kitnba

MIS
Jul 31, 2000
132
HK
I am using Menu editor, I don't want user click my menu item twice.
If 'A' program is already on screen , I don't let him to run 'A' program again.

How can I do it, or check the Progrma is already Exist now ? or I can disable the Menu item?

Thanks
 
Hi kitnba,

On the Init of you form you could so something like

SET SKIP OF PAD _EDIT OF _mysysmenu .F.

and at the destroy event of you form,

SET SKIP OF PAD _EDIT of _mysysmenu .T.

For more information check out the MSDN, SET SKIP.

Hope this helps.

Yue Jeen

 
Creeder's example isn't the first solution I thought of, but its the best and cleanest way to get the behaviour you want.

If you ever do need to look at the list of executing programs, though, you can use the PROGRAM() function. This example loops through all running VFP programs and displays their names on the screen:

Code:
for nPrograms = 1 to program(-1)
	? program(nPrograms)
endfor
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top