Page 1 of 1

PascalScript Document WideString and String functions

Posted: 07 Oct 2008 08:09
by fred
The document uses WideString and the string functions like UpperCase are String type.
I'm ony using ascii/ansi so it does not matter to me but as a Pascal/Delphi programmer i'm used using the correct type.
The Data types describes WideString as Variant and String as String type so it looks not the same type but is works :)

Posted: 07 Oct 2008 09:09
by Rickard Johansson
The script engine does seem to be able to handle "WideStrings" correctly even though they are handled as Variant type. Function calls seems to work as well. With both Unicode and ANSI data.
Most functions available through the script engine can only handle ANSI or Unicode (UCS-2). The functions in the Application and Document object can handle ANSI and Unicode (UTF-16).