Click or drag to resize

DbServer.CreateIndex Method

Create an index file with an order in it.

Namespace:  VO
Assembly:  VORDDClasses (in VORDDClasses.dll) Version: 2.6
Syntax
 VIRTUAL METHOD CreateIndex(
	oFSIndex AS USUAL := NIL,
	cExpr AS USUAL := NIL,
	cbExpr AS USUAL := NIL,
	lUnique AS USUAL := NIL
) AS USUAL
Request Example View Source

Parameters

oFSIndex (Optional)
Type: Usual
The name of the index file to be created.
cExpr (Optional)
Type: Usual
The indexing expression.
cbExpr (Optional)
Type: Usual
The indexing expression.  If a code block is provided, it should match the string expression; if a code block is not provided, one is created from the string expression.
lUnique (Optional)
Type: Usual
Whether the index is unique.  If not specified, the default is determined by SetUnique().

Return Value

Type: Usual
TRUE if successful; otherwise, FALSE.
Remarks
Sends a NotifyIntentToMove message before the operation.  Sends a NotifyFileChange message upon completion.
See Also