CreateCursor
TheCreateCursormethod creates a storage-unit cursor representing the specified focus context for this storage unit.
ODStorageUnitCursor CreateCursor ( in ODPropertyName propertyName, in ODValueType valueType, in ODValueIndex valueIndex);
propertyName- The name of the property in the focus context, or
kODNULLif the focus context is the entire storage unit.valueType- The value type of the value in the focus context, or
kODNULLto ignore this parameter.valueIndex- The value index of the value in the focus context, or 0 to ignore this parameter.
- return value
- A reference to the newly created storage-unit cursor.
DISCUSSION
Your part calls this method; its parameters specify the focus context for the storage-unit cursor.
- To specify the entire storage unit as the focus context, pass
kODNULLas the property name,kODTypeAllas the value type parameter, andkODIndexAllas the value index parameter.- To specify a property as the focus context, pass its name as the property name parameter,
kODTypeAllas the value type parameter, andkODIndexAllas the value index parameter.- To specify a value as the focus context, pass the name of the property containing the value as the property name parameter. You can specify the value by either its type or its index:
- To use type, pass the type of the desired value as the value type parameter and 0 as the value index parameter.
- To use index, pass
kODNULLas the value type parameter and the index of the desired value as the value index parameter.
EXCEPTIONS
kODErrZeroRefCount- This storage unit has a reference count of 0.
SEE ALSO
TheODPropertyNametype (page 904).
TheODValueIndextype (page 904).
TheODValueTypetype (page 904).
TheODStorageUnit::CreateCursorWithFocusmethod (page 677).
TheODStorageUnitCursorclass (page 716).
Table 11-1 on page 466 in OpenDoc Programmer's Guide.
Main | Top of Section | What's New | Apple Computer, Inc. | Find It | Feedback | Help