The following code creates an instance of a DbfIndex( ) object, defines it's indexName and expression properties, and creates a new index using
createIndex( ).

 

d=new DbfIndex()

d.indexName="indexname"

d.expression="expression"

// other properties

_app.databases[1].createIndex("tablename",d)