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 11 MAR 1998 03:16:08PM abjones wrote:

I have a simple loop buried in code invoked by way of

INET_GATEWAY:

…..

OPEN "","WEB_TRACKING" TO WEB_TRACKING_VAR THEN

SELECT "WEB_TRACKING" BY "LOGIN_DATE" SETTING CURSOR THEN
  LOOP
    READNEXT ID USING CURSOR BY "DT" ELSE
  WHILE ID#""
    LOGIN_DATE=XLATE("WEB_TRACKING",ID,"LOGIN_DATE","X")
    IF LOGIN_DATE#'' AND LOGIN_DATE<DATE() THEN
       DELETE WEB_TRACKING_VAR,ID THEN NULL
    END
  REPEAT
END

END ….

I put debugging calls to msg function to track ID and STATUS()

The value of STATUS() was always zero and the THEN clause executed

as expected. The ID returned by READNEXT is not an expected value but appears as portions of OI system type keys as if from the registry. What did I do wrong?

My current code uses the simple form of select var … readnext id

and works fine, but I thought I might need to grab a cursor to keep

from stepping on my own toes latter.


At 12 MAR 1998 12:16PM Aaron Kaplan wrote:

What happens if you change to AT type?

apk@sprezzatura.com

Sprezzatura, Inc.

www.sprezzatura.com_zz.jpg


At 12 MAR 1998 02:07PM abjones wrote:

Thanks, AT (without the quotes) worked. DT (without

quotes) still returns junk. But AT is just fine for

for what I want to do. It just goes to show that one

cannot trust the examples in the book verbatum!

(OforW programmers reference manual page 317)


At 12 MAR 1998 05:30PM Aaron Kaplan wrote:

It used to work, because I had an ARev app the relied very heavily on switching between them. It's why I asked you to check. Sounds like something you should report to Revelation QA as a bug.

apk@sprezzatura.com

Sprezzatura, Inc.

www.sprezzatura.com_zz.jpg


At 18 MAR 1998 02:47PM Cameron Revelation wrote:

abjones,

The ID returned by READNEXT is not an expected value

We have reproduced a problem with READNEXT DT against resolved lists. A fix will probably not be available until 3.7, however.

Cameron Purdy

info@revelation.com

View this thread on the forum...

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