The following tasks are associated with using a Variable part in visual composition. Tasks that are common to many parts are described in related topics.
To have the Variable hold objects defined by a template class, you must specify the template arguments. For example, for a sequence of ICustomer instances, specify IVSequence<ICustomer*> *.
If you examine generated code for Variable parts, you will observe that their implementation varies. This variation depends on the object type you specify, and is based on the following factors:
Considering these factors, the Variable part is
implemented as follows:
| |
Pointer specified? | |
|---|---|---|
| Object part type | Yes | No |
| Visual | IVBVariablePartPointer* | IVBVariablePart* |
| Nonvisual | IVBVariablePartPointer* | IVBVariablePart* |
| Class interface | IVBVariableClassPointer* | IVBVariableClass* |
If the property value is true, updates are deferred. To apply deferred changes, make a connection to the variable'sapply action. This action directs the variable to update its attributes for all attribute-to-attribute connections.
To automatically delete a dynamically created object in a variable, set the autoDeleteTarget property in the variable's property sheet. Select true in the value column
Working with VisualAge User
Interface Parts
Variable
Property Settings --
Variable
Portability -- Variable
