Einzelnen Beitrag anzeigen

WojTec

Registriert seit: 17. Mai 2007
480 Beiträge
 
Delphi XE6 Professional
 
#1

TComboBox and string object

  Alt 14. Feb 2012, 13:53
Delphi-Version: 2010
Add with function():

AStrings.AddObject(Name, TObject(string(Path))) ;

Test in OnChange:

ShowMessage(string(cbList.Items.Objects[cbList.ItemIndex]));

First ShowMessage() is showing path and then raises EInvalidPointer. How to fix it?
  Mit Zitat antworten Zitat