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 22 JUL 1999 12:59:11PM Mark Watford wrote:

Is there a way to have a report number each line. From the TCL window writing a list etc. report is there a command that will number each line 1 2 3 etc.


At 22 JUL 1999 01:11PM John Gunther / Bucks vs Bytes wrote:

One simple approach is to add a symbolic column to your report, LINENUM, whose formula is as follows:

@recur0 += 1

@ans=@recur0

@recur0 starts with a null value everytime you create a TCL line, and thus is properly initialized. In other circumstances, the TCL command:

EVAL @RECUR0='

will force the reset prior to running the LIST statement.

If you email me at [email protected], I can offer you some insights on an earlier problem you raised here.


At 22 JUL 1999 01:18PM Don Miller - C3 Inc. wrote:

Very clever piece of work, John.

Don Miller

C3 Inc.


At 22 JUL 1999 04:52PM Bill Titus wrote:

You could also add LINENUM to DICT VOC with

@[email protected]

and use for any LIST statement.


At 23 JUL 1999 08:44AM Mark Watford wrote:

Tried the formula but it only numbers the first line as 1. Maybe I am missing something.


At 23 JUL 1999 09:25AM Don Miller - C3 Inc. wrote:

The problem is that none of the above solutions can effectively deal with the problems of Mv's, Svm, Tm issues, particularly if you use constructs like LIMIT. About the only way you can deal with the Mv issue is to explode the data by sorting on an Mv field that contains the number of values in the report. Even then, unless your line-counter variable is specific to the file and is delimited in the same way, it won't work. The line counter variable will get incremented whether the data is output or not.

You're probably not interested in Gen'd code, but that's about the easiest way to do it.

Don Miller

C3 Inc.


At 23 JUL 1999 10:54AM Steve Smith wrote:

For reports without MV fields try a symbolic in dict of VOC with RETURN @REC.COUNT or similar.

I vaguely recall this working in 2.x of AREV….

Steve

View this thread on the forum...

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