PascalScript Document WideString and String functions

Ask questions about how to create a script or swap scripts with other users.
Post Reply
fred
Posts: 87
Joined: 02 Oct 2008 11:43
Location: The Netherlands

PascalScript Document WideString and String functions

Post 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 :)
User avatar
Rickard Johansson
Site Admin
Posts: 6577
Joined: 19 Jul 2006 14:29

Post 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).
Post Reply