Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
TIWListbox how to get Selected Values (Priority support)
#8
If I create a TStringList inside the method and return a instance to the calling code you will also have to deal with its destruction and call it inside a try..finally block which is basically an anti-pattern considering this specific scenario.

It is a much better and clean code if the calling code creates the TStringList and takes care of its destruction.
Reply


Messages In This Thread
RE: TIWListbox how to get Selected Values (Priority support) - by Alexandre Machado - 04-07-2023, 08:52 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)