Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Text with accents in file
#5
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??


Messages In This Thread
Text with accents in file - by ldarrambide - 02-27-2019, 04:29 PM
RE: Text with accents in file - by Gintaras - 02-27-2019, 04:55 PM
RE: Text with accents in file - by ldarrambide - 02-27-2019, 05:06 PM
RE: Text with accents in file - by Gintaras - 02-27-2019, 05:30 PM
RE: Text with accents in file - by ldarrambide - 02-27-2019, 05:45 PM
RE: Text with accents in file - by Gintaras - 02-27-2019, 05:59 PM
RE: Text with accents in file - by ldarrambide - 02-27-2019, 07:57 PM
RE: Text with accents in file - by Gintaras - 02-27-2019, 08:04 PM
RE: Text with accents in file - by ldarrambide - 02-28-2019, 01:25 PM
RE: Text with accents in file - by Gintaras - 02-28-2019, 01:55 PM
RE: Text with accents in file - by ldarrambide - 02-28-2019, 02:00 PM
RE: Text with accents in file - by Gintaras - 02-28-2019, 02:22 PM
RE: Text with accents in file - by ldarrambide - 02-28-2019, 02:26 PM
RE: Text with accents in file - by Gintaras - 02-28-2019, 02:37 PM
RE: Text with accents in file - by Gintaras - 02-28-2019, 02:39 PM
RE: Text with accents in file - by ldarrambide - 02-28-2019, 02:42 PM
RE: Text with accents in file - by Gintaras - 02-28-2019, 04:00 PM
RE: Text with accents in file - by ldarrambide - 02-28-2019, 04:10 PM
RE: Text with accents in file - by Gintaras - 02-28-2019, 04:41 PM
RE: Text with accents in file - by ldarrambide - 02-28-2019, 04:48 PM
RE: Text with accents in file - by Gintaras - 02-28-2019, 04:57 PM
RE: Text with accents in file - by ldarrambide - 02-28-2019, 05:42 PM

Forum Jump:


Users browsing this thread: 6 Guest(s)