02-27-2019, 05:45 PM
OK, will try later.
I face another problem.
I want to extract datas from the file with is comma separated fields by a ICsv variable.
But it seems that this variable created in WM_INITDIALOG routine is not accessible from message2 or sub functions when I want to call
its datas when a button of the dialog is clicked.
Am I supposed to create the ICSv variable and open the file each time i need datas from the files, and not have a once for all Icsv variable?
excerpt:
#sub DlgProc
function# hDlg message wParam lParam
sel message
case WM_INITDIALOG
str+ chemin fichier
int+ reponse=0
sub.ChargeFichier //works
ICsv g._create
g.FromString(fichier)
int nr=g.RowCount
case WM_DESTROY
case WM_COMMAND goto messages2
that part does not work...
messages2
sel wParam
case 4
mes reponse
case 13
DT_Ok hDlg
case 14
_s=g.Cell(2 0)
_s.setwintext(id(3 hDlg))
_s=g.Cell(2 1)
_s.setwintext(id(8 hDlg))
_s=g.Cell(2 2)
_s.setwintext(id(9 hDlg))
_s=g.Cell(2 3)
_s.setwintext(id(10 hDlg))
any hint??
I face another problem.
I want to extract datas from the file with is comma separated fields by a ICsv variable.
But it seems that this variable created in WM_INITDIALOG routine is not accessible from message2 or sub functions when I want to call
its datas when a button of the dialog is clicked.
Am I supposed to create the ICSv variable and open the file each time i need datas from the files, and not have a once for all Icsv variable?
excerpt:
#sub DlgProc
function# hDlg message wParam lParam
sel message
case WM_INITDIALOG
str+ chemin fichier
int+ reponse=0
sub.ChargeFichier //works
ICsv g._create
g.FromString(fichier)
int nr=g.RowCount
case WM_DESTROY
case WM_COMMAND goto messages2
that part does not work...
messages2
sel wParam
case 4
mes reponse
case 13
DT_Ok hDlg
case 14
_s=g.Cell(2 0)
_s.setwintext(id(3 hDlg))
_s=g.Cell(2 1)
_s.setwintext(id(8 hDlg))
_s=g.Cell(2 2)
_s.setwintext(id(9 hDlg))
_s=g.Cell(2 3)
_s.setwintext(id(10 hDlg))
any hint??