I knew someone would have a use for it, the exception that validates the rule!

Dennis McGrath
Software Developer
QMI Security Solutions
1661 Glenlake Ave
Itasca IL 60143
630-980-8461
[email protected]
From: [email protected] [mailto:[email protected]] On Behalf Of Jason Kramer
Sent: Thursday, April 05, 2012 2:49 PM
To: RBASE-L Mailing List
Subject: [RBASE-L] - Re: Passed Parameter Reference Name

    Nesting is most noticeable when you call an EEP/CFA/.RMD etc... 
recursively.  The first call will be -2, the second -2 and so on.  This way, 
when you are tracing your code, you can see which recursion level you are 
looking at.
                                                                Jason


Jason Kramer

University Archives and Records Management

002 Pearson Hall

(302) 831 - 3127 (voice)

(302) 831 - 6903 (fax)

On 4/5/2012 3:34 PM, Dennis McGrath wrote:

I have never found a use for the variable nesting level in 25+ years of RBASE 
programming.

Since I clear all % variables immediately after assigning them to other 
variables, I never have to worry about it.



How does one know at what nesting level their file will be called?  It can vary 
depending on the other code.

There is just too much opportunity for error trying to play the variable 
nesting level game.



Of course, there is always the exception to any rule, but I have never 
encountered it, and have studiously avoided it.



Dennis McGrath

Software Developer

QMI Security Solutions

1661 Glenlake Ave

Itasca IL 60143

630-980-8461

[email protected]<mailto:[email protected]>



-----Original Message-----

From: [email protected]<mailto:[email protected]> [mailto:[email protected]] On 
Behalf Of Coxen, Dayle

Sent: Thursday, April 05, 2012 1:57 PM

To: RBASE-L Mailing List

Subject: [RBASE-L] - Re: Passed Parameter Reference Name



That explains it.

I never came across any doc on the nesting level.



Thank You!



Dayle Coxen

Office of Maintenance

(850) 410-5635



Please note: e-mail may be subject to public disclosure.





-----Original Message-----

From: [email protected]<mailto:[email protected]> [mailto:[email protected]] On 
Behalf Of Mike Byerley

Sent: Thursday, April 05, 2012 2:49 PM

To: RBASE-L Mailing List

Subject: [RBASE-L] - Re: Passed Parameter Reference Name



the     %1-x is the nesting level, so if your called rmd file called

another, the variable would be %1-2.











----- Original Message -----

From: "Coxen, Dayle" 
<[email protected]><mailto:[email protected]>

To: "RBASE-L Mailing List" <[email protected]><mailto:[email protected]>

Sent: Thursday, April 05, 2012 2:00 PM

Subject: [RBASE-L] - Passed Parameter Reference Name





I am using 9.1 (build 9.1.5.20317).



I recently found a use for passing parameters to an .RMD command file using

the RUN command.

RUN ppsedit.rmd USING .vdate



The documentation for the Run Command says: "To reference the contents of

these variables, preface the variable name with a dot (.); for example, set

v1 =.%1."



This was not working for me.

So I traced the called .RMD file and displayed the passed parameter as a

watch variable.

It showed up as %1-1 not %1 as I had expected.

When I changed my references to the passed variable to %1-1 it worked.



Am I missing something or is the documentation wrong?



Dayle Coxen

Florida DOT

(850) 410-5635




Reply via email to