Navigation:  Reference > Commands >

Equal

Print this Topic Previous pageReturn to chapter overviewNext page

 

Use this command to set the receiving field to the value of an expression.

 

fn/v = f/c/e

 

 fn/vreceiving_field - Required - The field that is going to be changed.

 

f/c/eexpression - Required - The expression that is providing the data.  This can be as simple as a numeric constant, 1, or a very complex expression that uses functions and UDFs.

 

 

COMMENTS

If the two field types are not  the same the program will attempt to convert the expression to the type of the receiving_field.

 

NOTE:  There is a special use case for this field when you are setting a property value in an object on a form.  In that case you would use the following:

 

       '@ObjectName.PropertyName.SubPropertyName' = expression

 

       Notice that the receiving_field starts with a single quote and the @ symbol, followed by the object name, then a period (.) then the property name, and, if necessary, another period and the subproperty name followed by a single quote.  An example would be:

 

       '@Label1.Caption' = 'Change the caption of this label'

 

       In the above example, if there is a TLabel object on the current form with the name Label1, its caption would be changed to 'Change the caption of this label'

 

       This will only work for objects on the current form and cannot be used for the form itself.  To change the current form property values you must use the SET_OBJECT command.

 

 

For more information about form objects please refer to Form Objects - General Info.

 

 


Page url: http://www.cassoftware.com/tas/manual/equal.htm