[[https://www.revelation.com/|Sign up on the Revelation Software website to have access to the most current content, and to be able to ask questions and get answers from the Revelation community]] ==== W559 error (AREV Specific) ==== === At 08 OCT 2002 09:10:25AM Dick Trimble wrote: === {{tag>"AREV Specific"}} I have an unusual occurance of the W559 error message and I hope someone out there can give me some insight as to a solution. The code segment is as follows: READ RECORD FROM FILE, RECORD_KEY THEN VARIABLE=TRIM(RECORD:' ':RECORD:' ':RECORD) END ELSE VARIABLE=' END The segment works for all the records it reads but one. When I edit the offending record, it appears normal. The TRIM function is used repeatedly in the program. The FILE is indexed (Btree) and has the SI.MFS in it. The program consistently breaks on the same record with the W559 "Cannot continue. An attempt was made to execute a null ("") program.". Any suggestions would be a big help. TIA, Dick Trimble ---- === At 08 OCT 2002 09:36AM Dick Trimble wrote: === I have found the problem and corrected it. Thanks Dick Trimble ---- === At 10 OCT 2002 08:27AM Hippo wrote: === It may be interested, what was the problem? ---- === At 14 OCT 2002 03:49PM Dick Trimble wrote: === It's embarassing. I left a colon out of the trim statement: ANSWER= TRIM(RECORD:' '^ECORD:' ':RECORD) I put the ^ at the point of the missing colon. The program worked fine until RECORD was populated. Then it blew up. ---- === At 16 OCT 2002 07:07AM Hippo wrote: === Yes forgotted colon is one of the most often typoes. You must appropriately translate the error message to find it:) [[https://www.revelation.com/revweb/oecgi4p.php/O4W_HANDOFF?DESTN=O4W_RUN_FORM&INQID=NONWORKS_READ&SUMMARY=1&KEY=A4F3C7D8C3AA0C0185256C4C00485DB7|View this thread on the forum...]]