>Thanks for your reply, can u brief me where to put this function. In stored Procedure or the Load event of the form.
>
>Further to my query, can u guide me how can I disable the same item from the menu where the form has been called.
>
>Thanks/Regards - Saif
I acutally put in my main.prg. Make sure you add the line:
set procedure to main.prg additive
to the main.prg itself. That way I can call it from anywhere in my program.
To disable a menu item if the form it loads is already loaded add a line like:
isFormLoaded("frmCustomer")
to the 'skip for' property in the options of the menu item. When the 'skip for' expression evaluated to true, the menu item is disabled.