txgeekgirl1
Programmer
I am trying to walk a date range using a For variable to compare to an array. I am getting a not numeric nesting error - it seems to be in the walk between the svcdate and createdate - FOR x = Casedata_.svcdate TO Casedata_.CreateDate. Any help is much appreciated.
Code:
IF Casedata_.CreateDate - Casedata_.SvcDate > 2 THEN
LOCAL x, y
STORE {} TO x
STORE 0 TO y
FOR x = Casedata_.svcdate TO Casedata_.CreateDate
messagebox(DTOC(x)) *------------------This coming up / /
IF DOW(x,2) <> 6 OR DOW(x,2) <> 7 THEN
FOR y = 1 TO 50
IF x = holidayarray[y] THEN
messagebox(str(lnNewDays))
lnNewDays = lnNewdays - 1
messagebox(str(lnNewDays))
ENDIF
NEXT y
ENDIF
NEXT x
ENDIF