RubensLott
Programmer
Godd Morning!!!
I have a simple situation but my solution is not working good.
The situation is that I'm recording a PDF file and I ave to check if it exists (FileExists works OK) AND if it's generation is already finished.... I tried to use FileOpen/FileRead/FileClose but it´s not OK.... This is within a looping cause I have do record more than one file and I can work only one file at a time...
These are my code lines:
...
li_sair = -1
ls_dados = '/' // The first line is a system dateusing 'dd/mm/yyyy'
li_nroarq = FileOpen(ls_arqorigem)
DO WHILE li_sair = -1
li_sair = FileRead(li_nroarq, ls_dados) - // it's returning -1 (error)
LOOP
FileClose(li_nroarq)
...
Any tips?
Thanks in advance...
I have a simple situation but my solution is not working good.
The situation is that I'm recording a PDF file and I ave to check if it exists (FileExists works OK) AND if it's generation is already finished.... I tried to use FileOpen/FileRead/FileClose but it´s not OK.... This is within a looping cause I have do record more than one file and I can work only one file at a time...
These are my code lines:
...
li_sair = -1
ls_dados = '/' // The first line is a system dateusing 'dd/mm/yyyy'
li_nroarq = FileOpen(ls_arqorigem)
DO WHILE li_sair = -1
li_sair = FileRead(li_nroarq, ls_dados) - // it's returning -1 (error)
LOOP
FileClose(li_nroarq)
...
Any tips?
Thanks in advance...