News:

Let's find out together what makes a PIC Tick!

Main Menu

Item is missing

Started by Colin G3YHV, Jul 30, 2026, 08:19 PM

Previous topic - Next topic

Colin G3YHV

A program I have been writing suddenly wont compile with the
error message Error at line 1   item is missing.
I have nothing at line 1 !  so I tried the bas file on another
PC  running the old IDE with the same result.  HELP
What is causing this. I looked at the bas file with a text editor and it looks fine.
The program has no Include files.
Colin G3YHV

Yasin


RGV250

Hi Colin,
Can you post the code?
Also which compiler version.

Bob

Colin G3YHV

Thanks Yasin and Bob.  I have fixed it!
Decided to get up early whilst my brain is awake and figure it out.
The program has 650 lines of code  and is quite busy.
It uses a 600 pulse optical encoder,talks to an AD9850, has GNNS for time keeping
and displays via a TM1637, and uses the analogue port.
I found a rogue REPEAT command in a section of code with no matching RETURN.
So the compiler was correct -  Just could not tell me where!
Thanks all - Colin