[DUG] Unicode help in D7

Stefan Mueller muellers at orcl-toolbox.com
Thu Oct 4 03:55:25 NZDT 2012


If the first string to be concatenated is widestring then the result will be widestring, otherwise it will be an ansistring.

So in your example it would work allright, but if you want to be sure then typecasting the literal to widestring is safer. 

 


Kind Regards,
Stefan Mueller 
_______________________
R&D Manager
ORCL Toolbox LLP, Japan
 <http://www.orcl-toolbox.com/> http://www.orcl-toolbox.com

 

From: delphi-bounces at listserver.123.net.nz [mailto:delphi-bounces at listserver.123.net.nz] On Behalf Of Ross Levis
Sent: Wednesday, October 03, 2012 7:42 PM
To: 'NZ Borland Developers Group - Delphi List'
Subject: Re: [DUG] Unicode help in D7

 

Another Unicode question (D7).

 

var: Folder: WideString;

…

Folder := WideIncludeTrailingBackslash(Folder);

WideFindFirst(Folder+'*',faReadOnly…);

 

Will the compiler convert the ‘*’ to the Unicode equivalent?  Or should I do

Folder+WideString('*')?

 

Cheers.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://listserver.123.net.nz/pipermail/delphi/attachments/20121003/5a7314ee/attachment.html 


More information about the Delphi mailing list