07-24-2020, 07:35 PM
i have created a CSV object, i created a DlgGrid object. I am trying to pass a csv table to Grid, but get an error, "parameter is incorrect". why? what am i doing wrong? (side question: how do i get formatted code??)
str dd=
BEGIN DIALOG
0 "" 0x90C80AC8 0x0 0 0 224 136 "Dialog" "4"
3 QM_Grid 0x56031041 0x200 12 0 96 48 "0[]A[]B"
1 Button 0x54030001 0x4 116 116 48 14 "OK"
2 Button 0x54030000 0x4 168 116 48 14 "Cancel"
END DIALOG
DIALOG EDITOR: "" 0x2040A00 "*" "" "" ""
str controls = "3"
str qmg3
int hDlg
DlgGrid g.Init(hDlg 3)
ICsv x._create ;;create csv object
x.FromString("A,B[]C,D")
x.ToQmGrid(g 1)
if(!ShowDialog(dd 0 &controls)) ret
str dd=
BEGIN DIALOG
0 "" 0x90C80AC8 0x0 0 0 224 136 "Dialog" "4"
3 QM_Grid 0x56031041 0x200 12 0 96 48 "0[]A[]B"
1 Button 0x54030001 0x4 116 116 48 14 "OK"
2 Button 0x54030000 0x4 168 116 48 14 "Cancel"
END DIALOG
DIALOG EDITOR: "" 0x2040A00 "*" "" "" ""
str controls = "3"
str qmg3
int hDlg
DlgGrid g.Init(hDlg 3)
ICsv x._create ;;create csv object
x.FromString("A,B[]C,D")
x.ToQmGrid(g 1)
if(!ShowDialog(dd 0 &controls)) ret