FHannes Posted October 21, 2011 Share Posted October 21, 2011 (edited) SCAR Divi allows you to use the string and AnsiString types to represent strings. The difference is that string supports unicode and AnsiString does not. Due to backwards compatibility concerns, SCAR does however not support unicode, and all functions in SCAR use AndiString because of this. Therefore it's suggested that scripters use AnsiString rather than string in scripts as well as using string might cause unwanted issues. Support for unicode may be added to Divi in the future, but for now it will not be as it would break backwards compatibility, this would only be done in a single release to avoid spreading out large breaking changes over multiple releases. Edited December 5, 2011 by Freddy Quote Link to comment Share on other sites More sharing options...
Bixby Sayz Posted February 10, 2012 Share Posted February 10, 2012 My Delphi is more than a little rusty and SCAR often differs from Delphi in subtle and bedeviling ways so I have a question: If a function expects a String parameter and I pass in AnsiString (or vice versa) what will be the consequences? Quote Link to comment Share on other sites More sharing options...
FHannes Posted February 10, 2012 Author Share Posted February 10, 2012 Depends, mostly none, but sometimes it could end up turning into a bunch of jibberish... I intend to switch almost everything to string soon though. Quote Link to comment Share on other sites More sharing options...