Reply to thread

ok, found it out!


[code]      return ((string)arr[iCol]).Trim();[/code]


Need to add a null-check before this line:


[code]if (arr[iCol] == null) { return "";}[/code]


Thanks & sorry for posting self-resolving topics  :D

(C# strings can be null, unlike in Delphi......)


Cheers,


Daniel


Top Bottom