Sometimes, the dataport does not pick up wierd characters. For example, I recently dealt with a dataset that had carriage returns. How do you DELCHR a carriage return?
Sometimes, the dataport does not pick up wierd characters. For example, I recently dealt with a dataset that had carriage returns. How do you DELCHR a carriage return?
ASCII2ANSI does not work for all codepages, i.e. Slovenian
I solved problem importing all special characters in a table, determining and inserting ASCII no. to it.
This way I found real ASCII code and then I could convertstr properly.
I didn't think this code would compile much less work. How the heck could you have possibly figure out using txtCR using the same syntax as an array without declaring the variable as an array?
Are you Navision dressed up as a human or something?
I didn't think this code would compile much less work. How the heck could you have possibly figure out using txtCR using the same syntax as an array without declaring the variable as an array?
Are you Navision dressed up as a human or something?
You just blew my secret identity! :x
Just kidding
I wondered at a certain point about texts. A string (or text) is an array of char, so I just tried the array-logic on it.
The initialization is needed to define the length of the string, otherwise it will be garbage.
Regards,Alain Krikilion No PM,please use the forum. || May the <SOLVED>-attribute be in your title!
Comments
Ansi-Ascii converter
Convert ANSI characters to ASCII and back!
Microsoft Dynamics NAV Developer since 1997
MSDynamics.de - German Microsoft Dynamics Community - member of [clip]
AP Commerce, Inc. = where I work
Getting Started with Dynamics NAV 2013 Application Development = my book
Implementing Microsoft Dynamics NAV - 3rd Edition = my 2nd book
txtCR text:30
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!
I solved problem importing all special characters in a table, determining and inserting ASCII no. to it.
This way I found real ASCII code and then I could convertstr properly.
Using variables
charact Char
chrss Integer
And inserting in to table SpecChars
SpecCode Text 30
Chrs Integer
(var names are not quite recognizable so excuse me...)
What the hell? :shock:
I didn't think this code would compile much less work. How the heck could you have possibly figure out using txtCR using the same syntax as an array without declaring the variable as an array?
Are you Navision dressed up as a human or something?
AP Commerce, Inc. = where I work
Getting Started with Dynamics NAV 2013 Application Development = my book
Implementing Microsoft Dynamics NAV - 3rd Edition = my 2nd book
Epimatic Corp.
http://www.epimatic.com
Thats how life is running... existed in the world, learn things you didnt know, pass it through those who does not yet know and die in the end
Just kidding
I wondered at a certain point about texts. A string (or text) is an array of char, so I just tried the array-logic on it.
The initialization is needed to define the length of the string, otherwise it will be garbage.
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!
Yes, learning something new and be amazed by it is one of the pleasures of life.
AP Commerce, Inc. = where I work
Getting Started with Dynamics NAV 2013 Application Development = my book
Implementing Microsoft Dynamics NAV - 3rd Edition = my 2nd book