AddObject floating point value

I'm trying to store floating point values in the objects of a TStringlist, but I fail to write a class for storing floats. Anybody has an example please? Thanks a lot!

1
2
3
  // Create a "FloatObject" and set a float in it
  // Later on, use it as follows:
  StringList1->AddObject("John Jones", FloatObject);
Sorry, that only works with integers.
Topic archived. No new replies allowed.