I don’t see what the problem is in your code. But I can tell you what the error message means, perhaps that will help.
When Panorama first got a scripting language, there were no assignments. Instead of:
Name = "Joe"
you would write:
In other words, if there was a loose formula hanging around, Panorama would simply calculate it and stuff it into the current cell.
Starting in Panorama 6, this sort of “implicit assignment” is no longer allowed, because it is too prone to error. If you wind up with an extra formula by mistake, it will clobber the data in the current cell, and sometimes that would happen and no one would notice until much later. Very bad. Panorama 6 does have a preference to enable implicit assignment, but I strongly recommend leaving it off. Panorama X does not allow implicit assignment at all.
So what you are looking for is an extra formula that is not connected to an assignment and is not a parameter to a statement.
The problem might be the last line:
while not info("eof")
Panorama 6 can get confused when a formula starts with
not is also a keyword. I know it won’t work with an
if statement, not sure about
while. But you could try changing it to:
while (not info("eof")
Obviously this is rather confusing, and this problem has been cleared up in Panorama X.
One other thing I notice is that you are using the
lockfields statement. You probably don’t want to do that. I’m guessing that you are thinking this statement has something to do with record locking, but it doesn’t.