Expand Minimize
This topic has not yet been rated - Rate this topic

FieldCategory property

Office XP

FieldCategory property

http://msdn.microsoft.com/en-us/library/aa142112(v=office.10) See also         Example         http://msdn.microsoft.com/en-us/library/aa164032(v=office.10) Applies to

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

Version added

3.0

Syntax

intRet = object.FieldCategory

intRet

Integer. The field category.

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 FieldCategory property returns an exception. Check the IsField property of the Characters object before getting its FieldCategory property.

Field categories correspond to those in the Category list in the Field dialog box (click Field on the Insert menu).

To add a custom field, use the AddCustomField method.

The following constants for field categories are declared by the Visio type library in VisFieldCategories.

Constant

Value

visFCatCustom

0

visFCatDateTime

1

visFCatDocument

2

visFCatGeometry

3

visFCatObject

4

visFCatPage

5

Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.