Those commands did change with v11 and that might have something to do
with this. I'm responding via webmail right now and don't have access to
the A4D docs but I thought that Active4D DID NOT treat the characters with
code points 10 and 13 as 'ignorable'. The behavior may differ depending on
whether 4D is running in unicode-mode vs compatibility mode (or whatever
the latter is called).

-- Brad Perkins

>
> 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/
>

_______________________________________________
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