On 22 Jan 2011, at 22:48, Aparajita Fishman wrote:
>> Safari 5.0.3 & Firefox 3.6.13). The CR and LF characters cannot be seen by
>> the Position and Replace String commands.
>>
>> $pos:=position(char(13);$text;1;$length;*)
>> $text:=replace string($text;char(13);"CR";*)
>> $text:=replace string($text;char(10);"LF";*)
> Please check the Active4D v5 addendum, the syntax of Position and Replace
> string changed to match that of 4D v11.
I had spent quite a bit of time re-reading the A4D docs on Position and the v11
Docs on Replace String before sending this mail. I had also tried various
permutations of said commands - none of which worked,
Position(inFind; inSource {; inStart {; { *; } { outLengthFound {; * }}}})
->Longint
The optional last * is for bitwise comparison. It makes no difference whether I
run
$pos:=position(char(13);$text;1;$length;*)
or
$pos:=position(char(13);$text)
Replace string (source; oldString; newString{; howMany}{; *}) → String
Likewise the last optional * is for making the evaluation based on character
codes. Again, it doesn't work either with or without the *.
cheers
Lisa
--
Lisa Pollard
Software Developer
Another Dimension Ltd
Needham Hall Barns, Needham Street
Gazeley, Newmarket, Suffolk. CB8 8RR
[email protected]
Tel: +44 1638 554450
URL: http://www.anotherdimension.co.uk
_______________________________________________
Active4D-dev mailing list
[email protected]
http://mailman.aparajitaworld.com/mailman/listinfo/active4d-dev
Archives: http://mailman.aparajitaworld.com/archive/active4d-dev/