Memory tables are tables created temporarily to store and manipulate data. Memory tables consist of an ordered set of records, made up of fields and indexes that sort records in a defined order.
You can create a memory table using the MemoryTableBuilder Object in MaxBasic code to define properties. You can also use the Memory Table Builder to generate code to build a memory table.
Memory tables have the following methods:
Method |
Description |
|---|---|
Add a new index to the table definition. |
|
Add a new record to the memory table, at the end of the table. |
|
Orders records in the memory table in the order supplied. |
|
Cancel pending changes that haven't been saved. |
|
Cancels the range that has been set. |
|
Copy the field and index definitions from another table and link the tables. |
|
Copy the field and index definitions from another table. |
|
Deletes the current record in the memory table. |
|
Enter edit mode on the current record. |
|
Clear all records from the memory table. |
|
Go to the record with the closest match to the fields supplied. |
|
Go to the record exactly matching the fields supplied. |
|
Move to the first record in the table. |
|
Returns the domain of a field. |
|
Returns the value of a property or MaxBasic variable. |
|
Add a new record to the memory table, at the current position. |
|
Move to the last record in the table. |
|
Move to the next record in the table. |
|
Move to the previous record in the table. |
|
Return the type of the property. |
|
Used when a clone has been updated, to reflect changes in the main table. |
|
Save the current record. |
|
Set the value of a property or MaxBasic variable. |
|
After an Index has been set, set a range of values, and move to the first record in the range. |
|
Set the end of a range. |
|
Set the start of a range. |
|
Show the Error Hint of the current field. |
|
Sort the memory table by fields specified. |
|
When the table is bound to a grid on a form, this starts the grid being automatically updated. |
|
When the table is bound to a grid on a form, this stops the grid being automatically updated. |
|
Move the current record up one position. |
|
Move the current record down one position. |
Load and Save Memory Tables
Memory tables can be loaded and saved from CSV files, delimited files or from Excel.
Method |
Description |
|---|---|
Populate memory table from a CSV file. |
|
Populate memory table from an Excel file. |
|
Populate memory table from a delimited file. |
|
Save memory table to a CSV file. |
|
Save memory table to an Excel file. |
|
Save memory table to a delimited file. |