![]() | Programming Guide | ![]() |
Counts the number of data items in a bundle
int sm_get_bundle_item_count(char *bundle_name);
bundle_name- The name of the bundle. Supply
NULLor empty string to specify the unnamed bundle.
0 The number of items in the bundle.
sm_get_bundle_item_countcounts the number of data items in the specified bundle. You can call this function before reading send data into a screen to ensure that a data item exists for each receiving field, or to set a counter for successive calls to sm_get_bundle_data or sm_append_bundle_data within a loop.