Forum Discussion

eliaralva's avatar
eliaralva
Occasional Contributor
14 years ago

Unable to read Text property in a TComboBox in Delphi

Hello, I am trying to read the property Text of a ComboBox in Delphi with TC7:



ShowMessage(Aliases.Main.fmain.combobox1.Text);


and I am getting this error message (pls see attached image):



"The property or method does nor exist or it is used incorrectly.

you are trying to read a write-only property or to write a read-only property"





Thanks,



Elia.


3 Replies

  • Hi Elia,


    1. What is the name, vendor and version of your combo box control?

    2. Which version of Delphi did you use to compile your application?

  • eliaralva's avatar
    eliaralva
    Occasional Contributor
    Hi Allen, I'm using Delphi 5 and TComboBox with TC 7.52.678.7, thanks in advance!