11. Creating Toolbars : Create a Toolbar : Toolbar Items and Variables
 
Share this page                  
Toolbar Items and Variables
As with fields, each toolbar item can be associated with a 4GL variable. The toolbar item displays information to the user; your application can use the variable associated with the toolbar item to set or return a value for that toolbar item process.
Workbench creates default variable names for toolbars and the fields within the toolbars. The default names have the form fieldn, where n is an integer. You should use the Property Inspector to assign more meaningful variable names. For example, if a frame has only one toolbar, you might name it “toolbar.” Similarly, a button that is used to close a frame might be named “close_btn.”