This example shows the C code for a table function that supports both TBL_MODE_CONST and the TBL_MODE_VARY modes. The TBL_MODE_CONST is very simple in that any one AMP will extract the data out of the text string that is passed in.
This example extracts some data out of a 'raw' text field to generate a bunch of rows. The raw data is in this format:
- Number that identifies the store that sold the items to the customers.
- Number of items sold.
- Customer identifier.
- Item identifier.