Error getting tags :
error 404Error getting tags :
error 404 of | revDocs | RunRev
Welcome Guest (Log in)
Product Edition
Version
of
Basics
Expander triangle
Type
Keyword
Syntax
Introduced
1.0
Environment
Desktop, Web and Server
Platform Support
MacOS,Mac OS X,Windows,Linux
Security
None required
Summary
Designates the object a property belongs to, or the parameter of a function, or the string that contains a chunk expression.
Examples

set the backgroundColor of field "Alert" to red
get the length of thisDate
put word 12 of it after field "Go On"

Additional Comments
Expander triangle

Use the of keyword to designate an attribute of an object or chunk, or to designate a parameter of a built-in function.

Comments:

When designating a property, use the of keyword between the property name and the object reference. (The of keyword is not used when referring to global properties, only properties of objects.)

In an expression that includes a built-in function with one parameter, you can use either of two forms:

functionName(parameter)

functionName of parameter

The of keyword cannot be used for custom functions, or for built-in functions with more than one parameter.

When designating a part of a string, use the of keyword after the chunk type. For example, to specify the first word of a string, use an expression like word 1 of string. In complex chunk expressions with multiple chunk types, use the of keyword after each chunk type. For example, to specify the last character of the second line of a string, use an expression like this:

last char of line 2 of string

When designating the number of chunks in a string, use the of keyword after the chunk type. For example, to get the number of lines in a string, use an expression like this:

the number of lines of string

User Comments
Expander triangle