LoadData
far2_dialog.LoadData(aDialog, aData) Parameters: aDialog : a dialog object created by a NewDialog call aData : a table with data to load into aDialog Returns: nothing Description: The function copies input data aData into a dialog object aDialog. The dialog items must be added to the object before this function is called, since this function loads data only to existing dialog items. - The following item types are supported by the function: DI_CHECKBOX, DI_RADIOBUTTON, DI_EDIT, DI_FIXEDIT, DI_LISTBOX, DI_COMBOBOX. - The following properties are loaded by the function: - For DI_CHECKBOX, DI_RADIOBUTTON: only index 6 ("Selected"). - For DI_LISTBOX, DI_COMBOBOX: only field "SelectIndex" of index 6 ("ListItems"). - For DI_EDIT, DI_FIXEDIT: only index 10 ("Data"). - Data are loaded to items whose names are identical to the names of the aData fields. - If an item has either of fields _noautoload or _noauto set to true, it is not loaded. Example: local dlg = far2_dialog.NewDialog() dlg.cbxCase = {"DI_CHECKBOX",10,4,0,0, 0, "","",0, "&Case sensitive"} dlg.cbxWord = {"DI_CHECKBOX",10,5,0,0, 0, "","",0, "&Whole words"} far2_dialog.LoadData(dlg, {cbxCase=true, cbxWord=false})