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: [email protected] [mailto:[email protected]] 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.
_______________________________________________ NZ Borland Developers Group - Delphi mailing list Post: [email protected] Admin: http://delphi.org.nz/mailman/listinfo/delphi Unsubscribe: send an email to [email protected] with Subject: unsubscribe
