DEFINE POPUP file MARGIN RELATIVE SHADOW COLOR SCHEME 4 DEFINE BAR 1 OF file PROMPT "\<Test" ; SKIP FOR Something()In your form INIT code you would use something like the following:
SET SKIP OF BAR 1 OF file .T.Here we want to disable the first item in the file menu. If Something() is returning false, even with the SET SKIP OF BAR telling it to be TRUE, the first item will still be enabled.