This example shows the C code for a table function that supports both TBL_MODE_CONST and the TBL_MODE_VARY modes. Any AMP extracts the data from the input text string.
This example extracts data from a raw text field to generate rows. The raw data is in this format:
store_number,entries:entry[;...]
- entry
customer_ID,item_ID
- store_number
- Number that identifies the store that sold the items to the customers.
- entries
- Number of items sold.
- customer_ID
- Customer identifier.
- item_ID
- Item identifier.