11-23-2020, 02:17 AM
there is no need for the 1 second delay in your loop that i can see .Why is it there?
Remove it and everything works.
Remove it and everything works.
str dd=
;BEGIN DIALOG
;0 "" 0x90C80AC8 0x0 0 0 280 166 "Dialog" "4"
;3 Button 0x54032000 0x0 231 2 48 14 "Loop"
;4 QM_Grid 0x56031041 0x200 2 2 227 162 "0x10,0,0,0x2,0x0[]A,,,"
;END DIALOG
;DIALOG EDITOR: "" 0x2040B00 "*" "" "" ""
str controls = "4"
str qmg4x
if(!ShowDialog(dd &sub.DlgProc &controls)) ret
#sub DlgProc
function# hDlg message wParam lParam
int i; str a csv
DlgGrid g.Init(hDlg 4)
sel message
,case WM_INITDIALOG
,case WM_DESTROY
,case WM_COMMAND goto messages2
ret
;messages2
sel wParam
,case 3
,ICsv z._create
,for i 0 13
,,a=i
,,z.Cell(i 0)=a
,,z.ToString(csv)
,,z.ToQmGrid(g 0)
,case IDOK
,case IDCANCEL
ret 1