annoying invisible problems

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
CodeLobster

Re: annoying invisible problems

Post by CodeLobster »

asc()
Returns the ASCII value of a character. This function complements chr().
Syntax
asc(string)
string: character
If string is larger than one character the first character is used.
this may be the reason why i cant track down the annoying characters.

any improvement or work around can be made on this please?

Stefan
Posts: 1360
Joined: 18 Nov 2008 21:47
Location: Europe

Re: annoying invisible problems

Post by Stefan »

CodeLobster wrote:
asc()
Returns the ASCII value of a character. This function complements chr().
Syntax
asc(string)
string: character
If string is larger than one character the first character is used.
this may be the reason why i cant track down the annoying characters.

any improvement or work around can be made on this please?

For Each Char In Chars Do
  {
   $ASC = asc(Char)
  }

For an example see last example in
Scripting for beginners... > Do something for each item

CodeLobster

Re: annoying invisible problems

Post by CodeLobster »

but then it returns individual values that will NOT match the whole character, stefan!

can you please try to feed me on how youd do on the actual sample i posted?
thanks.

TheQwerty
Posts: 4373
Joined: 03 Aug 2007 22:30

Re: annoying invisible problems

Post by TheQwerty »

Why not use writeFile and the Raw preview?

Code: Select all

writefile('test.txt',"<crlf>",'o','b');

CodeLobster

Re: annoying invisible problems

Post by CodeLobster »

TheQwerty wrote:Why not use writeFile and the Raw preview?

Code: Select all

writefile('test.txt',"<crlf>",'o','b');
great tip.

Code: Select all

00000000: 22 0D 0A 20 20 20 0D 0A 22                      ; "..   .."       
but how to match that in a way script command replace replaces it for anything else?

sorry but i tried everything, this was my first post in this forum = reason why i entered it and im still lost in the woods. hope admins dont think im plainly hammering on this as its needed for my work.

Post Reply