wwBusinessObject::reindex

o.Reindex(llSaveIndexString)

Returns

.T. or .F.

Parameters

llSaveIndexString
When set to .t. the Index string is saved and returned to you. You can use this to override the Reindex method with a full index command which is more reliable than the default behavior.

Example

* ** Sample Implementation
IF THIS.nDataMode = 0
	IF !OpenExclusive(THIS.cDataPath + THIS.cFileName,THIS.cAlias)
	   THIS.SetError("Unable to open Item file due to exclusive use.")
	   RETURN .F.
	ENDIF

	DELETE TAG ALL
	PACK

	INDEX ON pk TAG pk
	INDEX ON sku TAG sku
	INDEX ON lower(padr(descript,10)) TAG descript
	INDEX ON deleted() TAG deleted

	USE
ENDIF

See also