BUILD from an INDEX Definition

[attrname := ] BUILD( indexdef [,indexfile] [, options ] );

Form 3 creates an index file by using a previously defined INDEX definition.

You can also use this form to build an index based upon two MERGEd indexes. To write a MERGEd index to disk, you must use the BUILD action and include the optional indexfile parameter.


nameKey := INDEX(mainTable,{surname,forename,filepos},'name.idx');
BUILD(nameKey); //gets all info from the INDEX definition

// BUILDing a MERGEd index

See Also: MERGE