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 13 MAY 2009 04:39:39PM James Foulkrod wrote:

Hi, I've been away from arev for a long time and am working with code written by someone else. A program is failing on this read line:

read batchkey2 from dict.product, %MY_KEY%, 1 else

MY_KEY is not a dictionary item in dict.product and it is not a variable set to anything in the program. It looks to me like a sequential counter but beyond that I don't know how to fix it.

Any help will be appreciated.

Thanks

Jim


At 13 MAY 2009 04:53PM James Foulkrod wrote:

I mistyped, there are single quotes around %MY_KEY% so the code is

read batchkey2 from dict.product, '%MY_KEY%', 1 else

this code worked in AREV3.12 and is failing in AREV32

also, it comes after a successful read:

read batchkey from dict.product, '%SK%',1 else

thanks


At 13 MAY 2009 04:58PM James Foulkrod wrote:

I mistyped, there are single quotes around %MY_KEY% so the code is

read batchkey2 from dict.product, '%MY_KEY%', 1 else

this code worked in AREV3.12 and is failing in AREV32

also, it comes after a successful read:

read batchkey from dict.product, '%SK%',1 else

thanks


At 13 MAY 2009 05:07PM Richard Hunt wrote:

If, as you say, '%MY.KEY%' is in quotes, single or double, then it is a literal string and not a variable. If this KEY does not exist in the folder then the ELSE part of the sentence will be executed. So… I am not sure what the actual complaint is.


At 13 MAY 2009 10:28PM James Foulkrod wrote:

Without a successful read the routine fails and since %MY_KEY% is not a key or a field name in the dictionary dict.product the read does fail. The product table has a single part key (KEY_NO). In the AREV3.12 version the dict.product did not contain a %MY_KEY% key or field name but the read does not fail. So, Is this another (AREV3.12) version of %SK% that will return the sequential key that is not permitted in AREV32?


At 14 MAY 2009 08:19AM Dave Harmacek wrote:

Rows in dictionaries that start with "%" don't show up in the various list dictionary routines.

Thus, you can create your own row in the dictionary for your own use.

This "%MY_KEY%" probably wasn't copied from the ArevDOS conversion. Can you go back and examine it? Just get to the command line and enter

EDIT DICT.filename %MY_KEY%

both to examine in ArevDOS, and to create a row in Arev32.

Dave


At 14 MAY 2009 09:31AM James Foulkrod wrote:

Right on. No way I could have solved that on my own.

Thanks again Dave.

Jim

View this thread on the forum...

  • third_party_content/community/commentary/forums_nonworks/08edf8ad9b2d404e852575b500717ea5.txt
  • Last modified: 2023/12/28 07:39
  • by 127.0.0.1