Author Topic: Session Properties - Trims white space?  (Read 189 times)

Tony Stone

  • Full Member
  • ***
  • Posts: 176
Session Properties - Trims white space?
« on: March 13, 2023, 12:34:56 am »
I am using the SessionProperties with a TXMLPropStorage component on my main form.  This mostly works great however I have recently run into an issue where I want to save the text of a TEdit control.  The TEdit.Text is saved if it is anything other than white space.  I have a situation where my user has a single space which needs to be stored but when I examine the XML file after the program exits the single space is ignored and the xml file is showing the value to be "".

Can I override this somewhere?  I have a feeling that the SessionProperties when being written are trimming white space which I am not so sure is really desireable?  I am poking through the code to try and find where this happens.


TinyPortal © 2005-2018