Options

Strange FOR loop error

Alex_ChowAlex_Chow Member Posts: 5,063
Hi Folks,

While compiling the standard unmodified Sales History (10157) report, I got the following error message:
---------------------------
Microsoft Dynamics NAV
---------------------------
The variable has the type Code. The counter in the FOR sentence should be a numeric, boolean, date, time or char variable. For example:

FOR Counter := 1 TO 10 DO ... ;

---------------------------
OK   
---------------------------

I tried to use different executables (4.0 sp3, 5.0, 5.0sp1), but the problems still comes up. The problem seems to only reside in this database as all FOR statements will not compile properly.

Can anyone shed some light on this issue?

Comments

Sign In or Register to comment.