On Jan 21, 2011, at 6:37 AM, Lisa Pollard wrote:

>                               $pos:=position(char(13);$text;1;$length;*)
> WRITE TO CONSOLE("test,5: position 13 = "+$pos)
> 
>                               $text:=replace string($text;char(13);"CR";*)
>                               $text:=replace string($text;char(10);"LF";*)


I don't have v5, but did the A4D "position" command change and the 4D Replace 
String command change?

The v4 version of position only has 4 arguments, you have supplied 5, with you 
passing a 0 in what should be an optional "*" for reverse.

the 2004 version of replace string has 4 arguments, but the last one is "How 
many" and makes no reference to an "*"


Again, I don't know if they changed the commands.

Have you tried just
        
  $pos:=position(char(13);$text)
  $text:=replace string($text;char(13);"CR")

?
_______________________________________________
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