numberVar Conversion_Year := tonumber(Mid (totext({insurance_details.complete_by_dt}),7,4));
numberVar Conversion_Month := tonumber(Mid (totext({insurance_details.complete_by_dt}),4,2));
numberVar Conversion_Day := tonumber(Mid (totext({insurance_details.complete_by_dt}),1,2));
numberVar Conversion_Hours := tonumber(Mid (totext({insurance_details.complete_by_tm}),12 ,3 ));
numberVar Conversion_Minutes := tonumber(Mid (totext({insurance_details.complete_by_tm}),16 ,2 ));
numberVar Conversion_Seconds := tonumber(Mid (totext({insurance_details.complete_by_tm}),19 ,2 ));
if not isnull({insurance_details.complete_by_dt}) and not isnull({insurance_details.complete_by_tm}) then
DateTime(Conversion_Year,Conversion_Month,Conversion_Day,Conversion_Hours,Conversion_Minutes,Conversion_Seconds)
I have used the above to combine a date field and a time field so they can be sorted and the earliest extracted. On my machine with CR v6 installed it works excatly as is should the compiled .exe also works fine. However when i run the .exe on other machines it reports the error String is Non Numeric.
Any ideas?
numberVar Conversion_Month := tonumber(Mid (totext({insurance_details.complete_by_dt}),4,2));
numberVar Conversion_Day := tonumber(Mid (totext({insurance_details.complete_by_dt}),1,2));
numberVar Conversion_Hours := tonumber(Mid (totext({insurance_details.complete_by_tm}),12 ,3 ));
numberVar Conversion_Minutes := tonumber(Mid (totext({insurance_details.complete_by_tm}),16 ,2 ));
numberVar Conversion_Seconds := tonumber(Mid (totext({insurance_details.complete_by_tm}),19 ,2 ));
if not isnull({insurance_details.complete_by_dt}) and not isnull({insurance_details.complete_by_tm}) then
DateTime(Conversion_Year,Conversion_Month,Conversion_Day,Conversion_Hours,Conversion_Minutes,Conversion_Seconds)
I have used the above to combine a date field and a time field so they can be sorted and the earliest extracted. On my machine with CR v6 installed it works excatly as is should the compiled .exe also works fine. However when i run the .exe on other machines it reports the error String is Non Numeric.
Any ideas?