![]() | Programming Guide | ![]() |
Restores saved data to some of the screen
int sm_rs_data(int first_field, intlast_field, char *buffer);
first_field, last_field- Specifies the range of data items to restore, where all data between
first_fieldandlast_fieldare restored to the screen.buffer- The address of a buffer, initialized by sm_sv_data, that stores the data to restore. Data items are stored in
bufferas null-terminated character strings. The contents of a scrollable array is preceded by 2 bytes giving the total number of items saved (high order byte first); each item is preceded by two bytes of display attribute, and followed by a null. There is an additional null following all the scrolling data.
C only
- 0 Success.
sm_rs_datarestores all data items betweenfirst_fieldandlast_field, both off- and onscreen, from a buffer initialized by sm_sv_data.The range of fields passed to
sm_rs_datamust match those passed to sm_sv_data andbuffermust be a value returned by that function; otherwise, serious errors may occur. For more information on saving data for later retrieval bysm_rs_data, refer to sm_sv_data.