John Dammeyer wrote: > Short of doing the usual substring etc. and breaking the string below into > smaller ones and then using val() to grab the numbers is there something > equivalent to sscanf() in Delphi? > > '00,INITIAL,NOP, 000000, 000000,04,INC,GTF,MTF,ATF.'
Sure. http://www.google.com/search?q=sscanf+delphi Note that unless you know the lengths of those fields in advance, sscanf wouldn't be a lot of help with that string. That's because %s consumes non-whitespace characters, including commas. You might want something that splits a string into an array or list based on commas instead. TStrings.CommaText might be sufficient. -- Rob _______________________________________________ Delphi mailing list -> [email protected] http://lists.elists.org/cgi-bin/mailman/listinfo/delphi

