ComponentOne True DataControl 8.0
Specifying Expressions using VBScript

The True DataControl expression language is a subset of Visual Basic Scripting Edition, commonly referred to as VBScript. In particular, it is the subset of VBScript containing expressions only. VBScript statements such as If...Then...Else and While...Wend are not supported, but any VBScript function and operator may be used in your expressions.

Variables used in True DataControl expressions are True DataControl fields and parameters. Defining an expression for a TData control, you can refer to any variable that belongs to that control by its name, such as CustomerID. If a TData control participates in a master-detail relationship with other controls (ancestors), you can refer to the ancestor's variables by separating the control name and the variable name with a dot, as in TData1.OrderID.

If you are not familiar with VBScript, don't worry about learning a new language; it is still Visual Basic. The most significant difference is that VBScript has only one data type: Variant. Thus, it is a just a simplified version of Visual Basic.

Also, True DataControl supports some functions in its expression language that are not normally supported in VBScript. Such are theIif and Format functions, supported in Visual Basic, but not in VBScript. For your convenience, True DataControl supports them in its expressions.

For information on True DataControl extensions to VBScript, see VBScript Reference.

 

 


Copyright (c) GrapeCity, inc. All rights reserved.

Product Support Forum  |  Documentation Feedback