Hi I am having a problem running a FoxPro program. An error comes up that reads :
numeric overflow data was lost
It stops on the code that reads:
Gather memar memo
Here's the portion of the code where the problem lies:
SCAN
SCATTER MEMVAR MEMO
COUNT=COUNT+1
m.storyorder = COUNT
titx=ALLTRIM(m.titlename)
copydate=ALLTRIM(STR(YEAR(m.issuedate)))
copyright = (CHR(9) + "This article was prepared by " + titx + " editors from staff and other reports. Copyright " + copydate + ", " + titx + " via NewsRx.com."
m.abstract = ALLTRIM(m.abstract) + copyright
SET CENTURY ON
date1x=DTOC(m.issuedate)
newcnt = ALLTRIM(SUBSTR(date1x,1,2) + SUBSTR(date1x,4,2) + SUBSTR(date1x,7,4))
SET CENTURY OFF
cntstr=ALLTRIM(STR(m.storyorder))
orderxr3="333"
newcnt1 = (newcnt+orderxr3+cntstr)
m.id = newcnt1
GATHER MEMVAR MEMO
ENDSCAN
What can I do to fix this error? Thanks in advance
numeric overflow data was lost
It stops on the code that reads:
Gather memar memo
Here's the portion of the code where the problem lies:
SCAN
SCATTER MEMVAR MEMO
COUNT=COUNT+1
m.storyorder = COUNT
titx=ALLTRIM(m.titlename)
copydate=ALLTRIM(STR(YEAR(m.issuedate)))
copyright = (CHR(9) + "This article was prepared by " + titx + " editors from staff and other reports. Copyright " + copydate + ", " + titx + " via NewsRx.com."
m.abstract = ALLTRIM(m.abstract) + copyright
SET CENTURY ON
date1x=DTOC(m.issuedate)
newcnt = ALLTRIM(SUBSTR(date1x,1,2) + SUBSTR(date1x,4,2) + SUBSTR(date1x,7,4))
SET CENTURY OFF
cntstr=ALLTRIM(STR(m.storyorder))
orderxr3="333"
newcnt1 = (newcnt+orderxr3+cntstr)
m.id = newcnt1
GATHER MEMVAR MEMO
ENDSCAN
What can I do to fix this error? Thanks in advance