|
Allows for a conditional Range in the minimum and maximum range, and locate expressions.
|
|
Syntax:
|
CndRange (condition, value)
|
|
Parameters:
|
condition - Boolean expression to be evaluated during runtime. When the condition parameter is evaluated as False, the Range or Locate clause is not generated.
|
|
|
value – To return if the condition is True.
|
|
Returns:
|
Any value as specified in the parameter list, if the evaluation of the <M> condition parameter was True.
|
|
Note:
|
This function can be used when you need to perform the range only in specific cases. For example: CNDRange(A>0,A) will perform the range on variable A only if it has a value bigger than 0.
This function can only be used for the expression in the Locate from/to and Range from/to properties in a variable. The attribute of the value must be compatible with the attribute of the selected variable.
|
|
Example:
|
CndRange ('TRUE'LOG, 10) will return the value 10
|
|
|
CndRange ('FALSE'LOG, 20) will not execute
|
|
See also:
|
The Online and Rich Client Samples projects (program DV06, DV07, RDV06 and RDV07)
|