FocusWithCursor
TheFocusWithCursormethod focuses this storage unit on the focus context represented by the specified storage-unit cursor.
ODStorageUnit FocusWithCursor ( in ODStorageUnitCursor cursor);
cursor- A reference to the storage-unit cursor representing the desired focus context.
- return value
- A reference to this storage unit, focused on the specified focus context.
DISCUSSION
After this method executes successfully, this storage unit's offset is 0.Before calling this method, you can call the
ExistsWithCursormethod to check whether the specified focus context exists.EXCEPTIONS
kODErrIllegalNullSUCursorInput- The
cursorparameter is null.kODErrPropertyDoesNotExist- The
cursorparameter specifies a property that does not exist.kODErrSUValueDoesNotExist- The
cursorparameter specifies a value type that does not exist for the specified property.kODErrValueIndexOutOfRange- The
cursorparameter specifies a value index that is out of the range for the specified property.kODErrZeroRefCount- This storage unit has a reference count of 0.
SEE ALSO
TheODStorageUnit::ExistsWithCursormethod (page 682).
TheODStorageUnit::Focusmethod (page 684).
"Focusing a Storage Unit" on page 274 in OpenDoc Programmer's Guide.