INDEX.TYPE_GET Function
Syntax
Type as N = Type_Get()
Description
Gets the type of index.
Discussion
The .TYPE_GET() method returns the type of the index referenced by the object pointer. The index type can be:
- Type of Index File
- Number
- a tag in an index file
2
- a query list
6
- record number order
-1
Example
This script is attached to the OnPush event of a button on a form.
dim tbl as P
dim idx as P
dim idx_type as N
tbl = table.current()
idx = tbl.index_primary_get()
idx_type = idx.type_get()
select
case idx_type = 2
ui_msg_box("type","index tag")
case idx_type = 6
ui_msg_box("type","query")
case idx_type = -1
ui_msg_box("type","Record number")
end selectSee <TBL>.INDEX_NAME_GET() for another example.
See Also