My TStrings2String now does
...
But that throws an exception when trying to restore the VARCHAR to the memo
...
Do I have to create ts as a new stringlist?
Should this function parameter not also be const declared because of refcount issues?
Now I am confused. Should I use the first or the second code?
And if the second, should'nt it be "Var strs..." in the declaration, because the variable gets modified?
Should this function parameter not also be const declared because of refcount issues?
TStrings has at least an interface in its inheritance through Tpersistent. IInterface is refcounted by default? Unless corba. Or is interface free from IInterface? Then I misunderstood. Anyway it does not hurt to declare as const.Should this function parameter not also be const declared because of refcount issues?
As Remy Lebeau wrote classes are not references counted, so const or not makes no difference in that regard.
TStrings has at least an interface in its inheritance through Tpersistent. IInterface is refcounted by default? Unless corba. Or is interface free from IInterface? Then I misunderstood. Anyway it does not hurt to declare as const.Should this function parameter not also be const declared because of refcount issues?
As Remy Lebeau wrote classes are not references counted, so const or not makes no difference in that regard.