Origin Ver. 8 SR4
Hi,
could you please have a look at this basic string method?
Thanks,
Michael
void AdventurousToken()
{
string strDate, strDay, strMonth, strYear;
strDate = "20.07.t007"; // works
strDay = strDate.GetToken(0,'.');
strMonth = strDate.GetToken(1,'.');
strYear = strDate.GetToken(2,'.');
printf("\nDay: %s, Month: %s, Year: %s\n", strDay, strMonth, strYear);
strDate = "20.07.2007"; // seems not to work
strDay = strDate.GetToken(0,'.');
strMonth = strDate.GetToken(1,'.');
strYear = strDate.GetToken(2,'.');
printf("Day: %s, Month: %s, Year: %s\n", strDay, strMonth, strYear);
}