my commandbutton is created using code in custom section
May I know what property I should set using code as I do not have an attributes panel for commanbutton created in code?
In the top of your custom section, public the variable you are going to use for the button – under where it says namespace.
/ // Lianja custom section for page "page1" section "section2" // namespace gap public tekbutton1 define class page1_section2 as section ....... .......
Then anywhere in the code, you can just use
and of course to show it, you use tekbutton1.show.
tekbutton1.hide is the same thing as tekbutton1.visible = .f.
tekbutton1.show is the same thing as tekbutton1.visible = .t.