DR ADD TO BIND

4D - Documentation   Français   English   German   4D Draw 2004, Command Theme List   4D Draw 2004, Command Alphabetical List   Back   Previous   Next

version 6.0


DR ADD TO BIND (bindID; attribute; table; field)

ParameterTypeDescription
bindIDLongintBind ID
attributeLongintAttribute code
tableIntegerTable number
fieldIntegerField number

Description

The command DR ADD TO BIND associates the object attribute described by attribute with the field described by table and field for the bind specified by bindID. bindID is the value returned by the DR New bind function.

Use this command once for each attribute that you want to associate with a field. There are 27 different object attributes that can be bound. No attribute or field can be used twice in the same bind

To change the attribute bound to a given field, first remove the attribute/field with the DR REMOVE FROM BIND command and re-bind it with a new call to DR ADD TO BIND. A bind must contain at least one attribute/field pair to be activated. Once a bind is active (associated with an area), adding new attributes will not affect the area unless the bind is deactivated and then reactivated.

Each attribute needs to be bound to a field of a specific type. If the attribute is not bound to the correct field type, it will not function properly. In some cases if you bind an attribute to a field that has a more constrained type (i.e., Long Integer instead of Real) the values are truncated. See Appendix A, Attribute Codes for a complete list of attribute codes and corresponding field types.

Note: Some attributes, such as the object ID, cannot be modified.

If the field bound to an attribute is given an inappropriate value (such as a negative width), the field is reset to its previous value.

Example

See the example for the DR ACTIVATE BIND command.

See Also

DR REMOVE FROM BIND.


4D - Documentation   Français   English   German   4D Draw 2004, Command Theme List   4D Draw 2004, Command Alphabetical List   Back   Previous   Next