VBPartValue Statement

The VBPartValue statement specifies an initial value for a part attribute. This corresponds to setting a part property in the part property sheet.

{ //VBPartValue: partName, attributeName, partValueTag, partValues }

partName
Name of the part that contains the attribute being given a value.

attributeName
Name of the attribute being given a value.

partValueTag
Class or data type of the attribute being given a value.

( accelerator | bitflag | code | color | enum | font | mclayout | mcinheritedlayout | mnemonic | largestring | filename | partRef | attrPartRef | avlpoint | point | range | resourceid | animResId | shadowAttribute | size | minsize | position2 | position1 | position | partType | boolean | collection | array | string | symbol | character | integer | avlrectangle | rectangle | float | null )

partValues
The initial value or set of values for the part attribute. A value is not required if the attribute type specified for partValueTag is null. The format of the value depends on the attribute type. For a push button part, the text attribute might be initialized to "Help" and the Size and position attribute might be initialized to (49,277,55,112,25).


Related procedures
Defining the Part Interface Using Part Information Statements

Related references
Visual Part Information Statements
Nonvisual Part Information Statements
Part Information Statement Descriptions
Part Information Statement Examples