` Printed Icetips Article

Icetips Article



Par2: Conditionally hiding a menu item - c5
1999-03-26 -- Jim Kane
 
> I need to know how to hide a menu item based on a variable.  What code
> would be used, what embed would i use.  I am using c5 clarion templates.
>
If yourvariable then
  ?menuitem{prop:hide}='1'
Else
  ?MenuItem{prop:hide}=''
end

Can be put anywhere after the window is open in ThisWindow.init in the frame procedure.



Printed November 23, 2024, 2:26 am
This article has been viewed/printed 35303 times.