PB2019R2
Windows 10, 64 bit platform
Summary:
The dw.ImportFile() command is returning -15 on files less that 100K in size
Details:
This commnd is part of the simple, one PBL utility we've been testing as the first converted code from PBv12.1.
We have text files that can range in size from 1KB up, with any number rows from 1 to over a million.
In PBv12.1, this works in the executable, but not in debug.
In PB2019, this does not work in either the EXE or in debug.
We've tried: ll_rc = dw_input.ImportFile (Text!, ls_file)
ll_rc = dw_input.ImportFile (Text!, ls_file, 1, 1000)
ll_rc = dw_input.ImportFile (Text!, ls_file, 1, 10, 1, 1)
ll_rc = dw_input.ImportFile (Text!, ls_file, 1, 10, 1, 1, 1)
Meanwhile, other files that are MUCH larger occasionally seem to work.
Q1. Am I doing something incorrectly?
Q2. Is there a way to make large files importable in PB2019 using dw.ImportFilew()?
Q3. Is there a replacement or substitute command/call/function for dw.ImporFile in PB2019 that will handle large text files?
NOTE: We are currently experimenting with FileReadEx().
Thank You,
Olan
You'd have to assign somehow all obtained data to an array first I guess.
See for more information on how to work with Data here: http://www.angelfire.com/home/jasonvogel/pb_technique_data_and_dot_notation.html
cheers