Quantcast
Channel: Dynamics 365 Business Central/NAV User Group
Viewing all articles
Browse latest Browse all 11285

Blog Post: Convert Tab delimited strings

$
0
0
I had an issue to process a csv file with TAB delimited text lines. The existing code expected text lines with ; as delimiter. Character TAB has ASCII Code 9. So i wrote following code: ConvertTabString(line : Text[250]) : Text[250] ch := 9; // of type Char line := CONVERTSTR(line,FORMAT(ch),’;’); exit(line); This can also be used to export the converted lines to a new text file, which can then be imported via dataport/xmlport. cheers Filed under: c/al , nav 2009 , nav ...read more

Viewing all articles
Browse latest Browse all 11285

Trending Articles