Namespace

Posted: 2017-01-20 in Namespaces

Q:
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?
A:
In the top of your custom section, public the variable you are going to use for the button – under where it says namespace.
For example.

Code:
/
// 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
tekbutton1.hide
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.



 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s