OpenTokens™: %DB(MAKEINDEX)%
Return to Introduction  Previous page  Next page

%DB(MAKEINDEX)% tokens will create a new database index file, using the specified parameters. They use following token format:

%DB(MAKEINDEX|dbalias|indexfile|expr|flags)%  
 
Parameters  
·MAKEINDEX   required   literal   action code  
·dbalias      required   literal   MivaScript database alias name  
·indexfile      required   literal   filename to use for the index file  
·expr      required   literal   MivaScript expression to base "index" on  
·flags      optional   literal   MivaScript index flags  
 
 
Example: To create a new unique index on the already opened database called "NewData" using the filename of "newdata.mvx", use

%DB(MAKEINDEX|NewData|newdata.max|NewData.d.testfld1|unique,ascending)%  

For more information, see <MvMAKEINDEX> in the Miva Script Guide v4.x -- <MvMAKEINDEX>
.

 


Send feedback on this documentation.
© 2004 - 2000 Darren Ehlers & OpenUI Developer Consortium