JCL Help:OnConfirmConversion

From Project JEDI Wiki
Jump to navigationJump to search


Summary

The summary for this help topic does not exist, edit this page


Description

When saving the list to a file or stream the class uses the SaveUnicode property to determine whether to save the list as Unicode or ANSI. If the SaveUnicode property is False the list is implicitly converted to and saved as ANSI. However, this potentially results in information loss if the list contains strings with characters that are not from the ANSI set (e.g. with values above $00FF). In this case the Save methods fire the OnConfirmConversion event to allow the user to reconsider the decision on how to save the data. Usually you will want to either save as Unicode instead or abort entirely. To save as Unicode instead you can set the SaveUnicode property from within the event handler. To abort the saving you can set the Allowed parameter of the event to False (it is True when the event is triggered so there is no need to explicitly assign True). If there is no event handler attached the save is implicitly aborted. You can use the Saved property to check whether the list was actually saved.


See Also

CommaText


About

Donator

Mike Lischke


Contribute to this help topic

This documentation wiki is based on the collaborative effort of Project JEDI users. Your edits are welcome in order to improve documentation quality: edit this page