It looks like you're new here. Sign in or register to get started.
CharVar := 9; i := STRPOS(Text,CharVar);
CharVar := 9; i := STRPOS(Text,FORMAT(CharVar));
txcTab := 'X'; txcTab[1] := 9; i := STRPOS(Text,txcTab);
txcCRLF := 'XX'; txcCRLF[1] := 10; txcCRLF[2] := 13; i := STRPOS(Text,txcCRLF);
Comments
Where CharVar is Variable of type Char, Text is your text line, i is integer...
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
Thanks for your reply, but I have a problem
I use the same code and variables, but when I compile the object, I receive an error: (is a translation)
"The type conversion is not posible because one of them is an incorrect type (is a translation)
text:=char
"
If I use Format, always return 0
I tried to erase all spaces in the string, and aparently it works
Thanks
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
variable: txcTab Text:1
Same for searching a CR/LF (to find 1 line):
variable: txcCRLF Text:2
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!