Quantcast
Channel: dBforums – Everything on Databases, Design, Developers and Administrators
Viewing all articles
Browse latest Browse all 13329

The string is non-numeric

$
0
0
Hi!
I have a strange problem. I've made a Custom TimeStamp function -->

Code:

Function (Numbervar TimeStampfield)
Numbervar yr;
Numbervar mon;
Numbervar dt;
numbervar hh;
numbervar mm;
numbervar ss;
Stringvar datefield:= (totext(TimeStampfield));
datefield:= Replace(datefield,",","");
datefield:= Replace(datefield,".","");
yr:=tonumber(mid(datefield,1,5));
mon:=tonumber(mid(datefield,6,3));
dt:=tonumber(mid(datefield,9,2));
hh:=tonumber(mid(datefield,11,3));
mm:=tonumber(mid(datefield,14,3));
ss:=tonumber(mid(datefield,17,2));
cdatetime(yr,mon,dt,hh,mm,ss);

And when I'm trying to open my custom report with HDauthority, it will occur an error (Attachment ERROR.jpeg).

Everything is working fine in Windows 7, 64bit but with Windows XP, 32bit that TimeStamp function causes an error??? And with VMware where is windows XP, 32bit it also works so where's the problem, I'm confused.

Attached Images
File Type: jpg ERROR.JPG (21.7 KB)

Viewing all articles
Browse latest Browse all 13329

Trending Articles