Hi!
Look to previous message, the last Paragraph. You do not need to explicitly tell Menu item to disable self. You can define a SKIP FOR condition for menu item. SKIP FOR condition is calculated each time menu item is refreshed, and depended on the result of that logical expression (.T. or .F.), it enables or disables the menu item.
>Dear Vlad,
>
>Thank you for your help! I have solve the problem that close the existing opened form on the Top Level Form.
>
>I still have a question about how to identify the certain position on the menu bar.
>
>say a menu bar is define as:
>
>File Voucher
> Open VoucherInput
> Close
> Profile
>
>How can I do if I press VoucherInput prompt to trigger a VoucherInput Form, whereas I disable the VoucherInput prompt.
>
>
>With regards.
>
>Ransome
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.comICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs
It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.