Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion

Saving/loading ComboBox properties..

Hi Team,
Win 10, Delphi 10S, latest LMD.

I am using LMDStorPropertiesStorage & LMDStorINIVault to save/load a TComboBox properties.

I can save & restore the Items no problem, and it saves the Text, but I cannot get it to restore the ComboBox Text.

Thoughts/Suggestions?

Regards, & TIA,
Ian

Comments

  • 3 Comments sorted by Votes Date Added
  • >>Thoughts/Suggestions?<<
    You don't mention the Style property of the ComboBox. 
    If set e.g. to DropDownList, Text property would be the wrong property to store (it has to be ItemIndex).
    For DropDown Text should work, at least I just checked it in ControllerVault demo.
  • Hi Rafael,
    Sorry, Style is csDropDown.
    The objective here is to be able to progressively populate the Items at run time as new entries are added.  Then reserve the last entry, .Text property, and the .Items property contents betrween application sessions.

    Regards,
    Ian
  • Hi Rafael,
    Call off the hounds.  Just found what was happening.  I was using some temp variables and the temp variable was ''.  When the form was called.  This was overwriting the restored .Text entry.

    All good now.

    Apologies for any inconvenience.

    Ian
Sign In or Register to comment.