Share via


FieldCode Property [Visio 2003 SDK Documentation]

Returns the field code for a field represented by an object.

intRet = object**.FieldCode**

intRet     Integer. The field code.

object     Required. An expression that returns a Characters object.

Version added

3.0

Remarks

If the Characters object does not contain a field or contains non-field characters, the FieldCode property returns an exception. Check the IsField property of the Characters object before getting its FieldCode property.

Field codes correspond to the fields in the Field list in the Field dialog box (click Field on the Insert menu).

Constants for field codes are declared by the Microsoft Office Visio 2003 type library in VisFieldCodes.

Applies to | Characters object

See Also | AddField method | FieldCategory property | FieldFormat property | FieldFormula property | IsField property