Their appears to be a bug in the replace string method which is causing characters that should not be replaced to get replaced. Example code:

$inString := "here is my string with an a"
$old_char := char(128)
$new_char := " "

$outString := replace string($inString;$old_char;$new_char)


In the above example, the 'a' character (ascii code 97) is being replaced, which is incorrect. This also seems to happen when you try and replace other certain high-bit ascii characters.

Has anyone run into this before?  Am I missing something?

thanks,
Lowell

_______________________________________________
Active4D-dev mailing list
[email protected]
http://mailman.aparajitaworld.com/mailman/listinfo/active4d-dev
Archives: http://mailman.aparajitaworld.com/archive/active4d-dev/

Reply via email to