X-Function Range
This example demonstrates how to use ListBox control for Range variable.
#include <..\OriginLab\wks_utils.h> // needed for init_GetN_col_list_ctrls function
string str; if(collist) collist.GetRangeString(str, NTYPE_FOR_RANGE); out_str(str);
bool bIsStart = is_xf_startup(nGetNDialog, dwCntrl); if(bIsStart && (dwCntrl & LTXF_SHOW_DIALOG)) { init_GetN_col_list_ctrls(NULL, trGetN.collist); }