Но READLIST не читает текущий активынй список. Например List inheritance in program with the READLIST

16 views
Skip to first unread message

gangst...@gmail.com

unread,
Aug 27, 2026, 12:24:34 PM (6 days ago) Aug 27
to jBASE
Hello,

I'm writing a program that needs to use an active list.
But READLIST doesn't read the current active list.

For example:

SELECT FBNK.CUSTOMER
  100 Record Selected
>MY.PROG


PROGRAM MY.PROG
   
    READLIST L.LST THEN
        CRT "List count " : DCOUNT(L.LST, FM);
    END ELSE
        CRT "List is missing";
    END
   
RETURN

>>>List is missing

However, if the active list is created inside the READLIST program, it works

SELECT FBNK.CUSTOMER
  100 Record Selected
>MY.PROG


PROGRAM MY.PROG
    WRITELIST CONVERT(" ", FM, "A B C") TO 0;
    READLIST L.LST THEN
        CRT "List count " : DCOUNT(L.LST, FM);
    END ELSE
        CRT "List is missing";
    END
   
RETURN

>>>List count 3

Why is this happening? What am I doing wrong?

Rick Weiser

unread,
Aug 27, 2026, 12:25:16 PM (6 days ago) Aug 27
to jBASE
Use READNEXT not READLIST

Jim Idle

unread,
Aug 27, 2026, 12:46:16 PM (6 days ago) Aug 27
to jb...@googlegroups.com, jBASE
Open the file in your program, then use the jBC SELECT statement.

On Aug 27, 2026, at 10:25, Rick Weiser <yld...@gmail.com> wrote:

Use READNEXT not READLIST
--
--
IMPORTANT: T24/Globus posts are no longer accepted on this forum.
 
To post, send email to jB...@googlegroups.com
To unsubscribe, send email to jBASE-un...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/jBASE?hl=en

---
You received this message because you are subscribed to the Google Groups "jBASE" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jbase+un...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/jbase/ec62b08c-c6b7-43b0-b3e1-a060c93d1f4an%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages