Dear all,
I'm trying to read a csv file and import into Navision... but the problem is the vairable:g_txtProcessingLine have 1024 length limitation.
The row in the csv file is possible more then 1024 length, does anyone know how to deal with it? I'm trying to study how to use bigtext datatype but... it seem to not working... :?
===================================
g_txtImportFilename := 'D:\Employee.csv';
g_filCatalogImportFile.TEXTMODE(TRUE);
g_filCatalogImportFile.OPEN(g_txtImportFilename);
g_filCatalogImportFile.READ(g_txtProcessingLine);
===================================
0
Comments
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
I'm appreciate your suggestion.
:?
You want to use a codeunit or dataport?
http://www.BiloBeauty.com
http://www.autismspeaks.org
Actually, I used codeunit to import the file.
It's done now. O:)
can someone please post a code sample? I have a similar problem...
Best Regards,
Gregor
I have created a file with 5 lines. Each line has a text with length of 500.
The the code below is ran:
Note that InStr is a text variable with 1024 length.
The following error occurs:
Microsoft Dynamics NAV
The text 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa|
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa|
aaaaaaaaaaaaaaaaaaaa' in READ parameter no. 1 is too long.
OK
I have also tried to change Instr to a shorter length, like 80 chars, and I still get the error.
Is there something wrong with the way this is coded?
I found my solution in --> viewtopic.php?f=23&t=29313&p=146950#p146950
using BigText is so much simpler.