third_party_content:community:commentary:forums_nonworks:a4f3c7d8c3aa0c0185256c4c00485db7

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

At 08 OCT 2002 09:10:25AM Dick Trimble wrote:

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:)

View this thread on the forum...

  • third_party_content/community/commentary/forums_nonworks/a4f3c7d8c3aa0c0185256c4c00485db7.txt
  • Last modified: 2023/12/28 07:40
  • by 127.0.0.1