Problems with R/BASIC @variables and the debugger. (AREV Specific)
At 16 DEC 1999 06:36:03PM Harvey_Horsmana@bp.sympatico.ca wrote:
Problem 1:
The @FILES and @VOLUMES R/BASIC variables are described in the R/BASIC manual as dynamic arrays. They are however dimensioned arrays (dim 5).
When I try to extract the 5 dimensions of the array into other variables, all I get in all of them is the content of dimension 1.
Problem 2:
I set up a trace table in the debugger, and when a program step is executed, the entries in the table are not displayed. (Trace is ON and the D command shows the items in the trace table). I have tried different combinations of $executable and *variable in the SOURCE and OBJECT tables, to no avail. What gives?
from the GREENHORNet.
At 17 DEC 1999 07:39AM Richard A. Wilson wrote:
well I just checked @FILES on arev 1.16 and the results
returned is a dynamic array which contains one attribute for each file
the account I used has 192 files therefor @FILES has 192 attributes
I dont know about later releases of arev, we never had a need to
upgrade
At 17 DEC 1999 10:08AM Warren wrote:
You need the 'system' compiler in order to access all the dimensioned elements of @FILES in RBasic.
There was a subroutine in the developer's kit that allowed read access but this no longer works past version 2.03 if I recall (needs to be recompiled with the system compiler).
And no, the system compiler is not available to mere mortals.
At 17 DEC 1999 01:59PM billw@synergycc.com wrote:
This is not a response to your questions.
Is this Harvey Horseman from Vancouver the cable king?
Bill Wishart
ex of TAG Distributors
At 18 DEC 1999 05:17PM akaplan@sprezzatura.com - [url=http://www.sprezzatura.com]Sprezzatura Group[/url] wrote:
As Warren stated, you do not have access to the full vars, only the first element. If you need to get to the others, best thing to do is read the record from the FILE/SYSTABLES or VOLUMES/SYSVOLUMES files. These files are representations of the @vars.
As for the trace, if I remember correctly, the information only displays in the debugger, so you need to step through each line.
akaplan@sprezzatura.com
[/i]World leaders in all things RevSoft[/i]
At 20 DEC 1999 09:55AM Kurt wrote:
Harvey,
The contents of @files is in the FILES file (or SYSTABLES in 3.x)
and the contents of @Volumes is in the Volumes file (or Sysvolumes)
So if it is read access you are after - I'd recommend reading from one of these two files. This is a very fast read, because you are going to memory not disk. The MEMORY.RESIDENT filing system used by both these tables makes variables look like files. The key for SYSTABLES is your table name, the key for SYSVOLUMES is your volume name (how it was attached).
Hope this is what you are after…
Kurt