Useful Control Class Properties

Controls based on the VPM Enterprise control classes contain the useful properties described in the following subsections.

Controlling a Control’s Width - lOverrideWidth

When you run a VPM Enterprise Form, the width of data-bound controls is adjusted to match the field’s width as stored in the Data Builder.

If you do not want the width of data-bound controls to be adjusted to match the field width as stored in the Data Builder, set the control’s lOverrideWidth property to .T.. A setting of .T. will allow you to manually adjust a control’s width, and the next time you run the form, your manual adjustment won’t be overriden.

Controlling a Label’s Caption - lOverrideCaption

When you run a VPM Enterprise Form, the caption of the label associated with a field is pulled from the field’s Description (Long) property in the Data Builder.

If you do not want the label caption to be pulled from the Data Builder, set the Label control’s lOverrideCaption property  to .T. A setting of .T. will allow you to manually enter a caption in the Label’s Caption property, and the next time you run the form, your caption won’t be overriden.

More:

How to Filter Validation and Picklist Cursors