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.

CommentsField FunctionThe field function gives you access to the attributes of the object associatedwith a displayed field or menu item, rather than to the actual value of the fieldor menu item. For example, assume that you create a frame with a slider field.In the OpenROAD Workbench's Property Inspector for the slider field, youspecify the field's variable as temperature. This variable is a simple integervariable. When you reference the variable in a program, the reference providesthe current value in the slider field:if temperature >= 85 then ...In contrast, if you use the field function with the variable name, then thereference is to the object that the field represents, the SliderField object. Usingthe field function lets you read or change attributes of that object:field(temperature).TypeFace = TF_LUCIDA;This statement changes the type face of the value settings on the slider field.For more examples and further discussion of the field function, see CreatingDynamic Frames (see page 363).CommentsYou can include comments anywhere in your scripts, 4GL procedures, and in3GL procedures written in C. A comment is bounded by “/*” on the left and by“*/” on the right, for example:/* This is a comment */Comments can extend over more than one line, for example:/*** This is a multiline comment.*/You cannot nest comments.Language Elements 65

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

Saved successfully!

Ooh no, something went wrong!