FieldCode property
Returns the field code for a field represented by an object.
Version added
3.0
Syntax
| |
intRet |
Integer. The field code. |
object |
Required. An expression that returns a Characters object. |
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).
The following constants for field codes are declared by the Visio type library in VisFieldCodes.
Constant |
Value |
visFCodeCreateDate |
0 |
visFCodeCreateTime |
1 |
visFCodeCurrentDate |
2 |
visFCodeCurrentTime |
3 |
visFCodeEditDate |
4 |
visFCodeEditTime |
5 |
visFCodePrintDate |
6 |
visFCodePrintTime |
7 |
visFCodeCreator |
0 |
visFCodeDescription |
1 |
visFCodeDirectory |
2 |
visFCodeFileName |
3 |
visFCodeKeyWords |
4 |
visFCodeSubject |
5 |
visFCodeTitle |
6 |
visFCodeManager |
7 |
visFCideCompany |
8 |
visFCodeCategory |
9 |
visFCodeHyperLinkBase |
10 |
visFCodeWidth |
0 |
visFCodeHeight |
1 |
visFCodeAngle |
2 |
visFCodeData1 |
0 |
visFCodeData2 |
1 |
visFCodeData3 |
2 |
visFCodeObjectID |
3 |
visFCodeMasterName |
4 |
visFCodeObjectName |
5 |
visFCodeObjectType |
6 |
visFCodeBackgroundName |
0 |
visFCodePageName |
1 |
visFCodeNumberOfPages |
2 |
visFCodePageNumber |
3 |