How I can use it in my Form
You can actually store data with type helpers but it needs a trick:Assignable typed constants in a function body that also takes a var parameter and the same result.But I doubt this is what he means. The best way is still to derive a new stringgrid from Tstringgrid. You can also setup an external data store in the afterconstruction event and release it in the beforedestruction event. There are many options.
Quote from: Thaddy on October 13, 2018, 03:04:15 pmYou can actually store data with type helpers but it needs a trick:Assignable typed constants in a function body that also takes a var parameter and the same result.But I doubt this is what he means. The best way is still to derive a new stringgrid from Tstringgrid. You can also setup an external data store in the afterconstruction event and release it in the beforedestruction event. There are many options.In that case you should also mention local, writeable, typed constants are merely scoped global variables so that no one is confused if they use this with multiple instances.