All Things Ubuntu Library Wiki
Ubuntu dedicated Object Pascal libraries
Brought to you by:
krisjacewicz
A version of a standard Object Pascal FreeAndNil function for freeing and objects and setting its pointer to nil, that catches runtime exceptions.
Function ExtractTextColumn(s: string; const AIndex: cardinal): string;
Returns substring belonging to the specified column in the passed string, or an empty string if the specified column index is invalid.
var s : string = 'I like pizze so so very much!'; (..) begin writeln(ExtractTextColumn(0)); //will print 'I' writeln(ExtractTextColumn(2)); //will print 'pizza' writeln(ExtractTextColumn(6)); //will print 'much!' end;