Hello, all
found a sollution - maybe there's a better one (comments wellcome!)
but it's working!
// extract numeric part of Excel Cell strings
// "AB665", "A678", "E6"
// ATTENTION straightforward function, does it's job,
// but is NOT FAILSAFE (e.g. for "A34B56") !!
UINT getNumeric(string s)
{
int index = strcspn( s, "0123456789" );
s = s.Right(s.GetLength()-index);
printf("num: %s\n", s);
return atoi(s);
}
Hajo
-- --
Dipl.-Ing. Hans-Joerg Koch
Siemens VDO, Regensburg
SVDO_Origin1