‎11-23-2006 06:40 AM
‎11-23-2006 07:23 AM
‎11-23-2006 08:40 AM
‎11-24-2006 01:49 AM
Another possibility, supposing the first part is always and only alphabetic and the second always and only numeric, could be to use
Fmt (string, "%s[t#]%d", string1, number);
the [t#] modifier instructs the Scan function to terminate scanning the source string on the first numeric character. Scan and Fmt functions in the Formatting and I/O are powerful functions and are well documented in the online help.
‎11-24-2006 04:05 AM
Or you could just try:
char Barcode[50] = {"ABCDEFG \t123"};
char String[50];
int Number;
sscanf(Barcode, "%s%d", String, &Number);
This doesn't care how many spaces or tabs are in between the alpha numeric field and the numeric field
Regards