10.07.2015 Views

Programming Guide - Actian

Programming Guide - Actian

Programming Guide - Actian

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Conceptual BackgroundConceptual BackgroundBy changing a field or menu option's bias, you can change its appearance andbehavior. Even objects created in OpenROAD Workbench can be changed atruntime. These changes include:• Appearance of menu options and buttons, which includes the followingavailable states:– Enabled– Disabled– Invisible• Behavior of fields and frames, which includes the following availablestates:– Visible– Changeable– Resizable– Moveable– LandableYou can also create frames whose fields are added or deleted either at framestart-up or while the frame is running. Adding fields to a frame by creatingthem at runtime is a straightforward process. However, fields createddynamically do not have the data variables of most fields created inOpenROAD Workbench. Therefore, accessing the data values of these fieldsinvolves using methods and objects.When you create a field in Workbench, the Variable Declared toggle field onthe Property Inspector for that field defaults to on. The variable declared bydefault lets you access the field's data value directly. This data variable cannotbe used to refer to the attributes of the object.When you create a field in Workbench, you generally change the data variablename provided by default on its Property Inspector. You reference your datavariable name in your 4GL code whenever you need to access the data in thefield.For example, assume that you create an entry field and overwrite the defaultvariable name (Field0) as title. You can set the value in that field with thefollowing statement:title = 'Destry Rides Again';364 <strong>Programming</strong> <strong>Guide</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!