At 10:20 AM +1000 10/22/06, Dr Gerard Hammond wrote:
The top version returns a NIL encoded string and if you later
concatenate this with another string, the resulting string will also
have a NIL encoding and then you can get bitten by some subtle (ie
catastrophic) differences with InStr(), countStr etc.
The bottom one fixes this nasty little creepy crawly ....
(Can you tell I just got bitten by it...)
Thanks for pointing this out. I'm always using it for immediate
display so I've never gotten bit by that particular nasty.
I haven't checked, but it sounds like a bug that Format would return
a string with NIL encoding. DefineEncoding is an interesting
workaround, but we don't really know for sure that's what Format
always returns.
Sounds like a RB bug to me.
Thanks again for letting me know.
Joe Huber
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>