10.07.2015 Views

Programming Guide - Actian

Programming Guide - Actian

Programming Guide - Actian

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

ExpressionsConstants let you substitute a brief name for a long phrase or value that isused in several places, for example, if you have encoded a set of values asintegers for storage. Constants also provide a consistent reference for messagestrings, for example, in internationalizing products.To reference a named constant from your 4GL code, use the constant name,for example:if salary > HISALARYVALUE then ...For more information on using the Constant Editor, see the User <strong>Guide</strong>.System VariablesSystem variables are built-in variables that are available in all frames andscripts. OpenROAD provides the following system variables:CurEventScopeSpecifies the context of the currently executing event block. This is a localvariable of type Scope. Referencing CurEventScope outside of an eventblock causes a compile-time error.CurScriptScopeSpecifies the context of the currently executing field script. This is a localvariable of type Scope. Referencing CurScriptScope outside of a field scriptcauses a compile-time error.CurFrameSpecifies the current frame. This is a local variable of type FrameExec. Formore information about using the CurFrame variable, see the LanguageReference <strong>Guide</strong> online help.CurMethodSpecifies the currently executing user class method. This is a local variableof type MethodExec.CurObjectSpecifies the user class object on which the currently executing user classmethod was invoked. This is a local variable of type UserObject.CurProcedureThe currently executing procedure. This is a local variable of typeProcExec.Language Elements 39

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

Saved successfully!

Ooh no, something went wrong!