Yep and CLEAR VAR __-_ does it nicely, thank you! Dennis McGrath Software Developer QMI Security Solutions 1661 Glenlake Ave Itasca IL 60143 630-980-8461 [email protected] -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Mike Byerley Sent: Thursday, April 05, 2012 4:36 PM To: RBASE-L Mailing List Subject: [RBASE-L] - Re: Passed Parameter Reference Name
I'm with you on this one.. Clear'em. When you think you have come up with a foolproof methodology to track them, you will find out foolproof isn't, so just clear'em [I said that already didn't I?]... ----- Original Message ----- From: "Dennis McGrath" <[email protected]> To: "RBASE-L Mailing List" <[email protected]> Sent: Thursday, April 05, 2012 3:34 PM Subject: [RBASE-L] - Re: Passed Parameter Reference Name 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] -----Original Message----- From: [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]] 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]> To: "RBASE-L Mailing List" <[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 --- RBASE-L =======================3D=======================3 D= TO POST A MESSAGE TO ALL MEMBERS: Send a plain text email to [email protected] (Don't use any of these words as your Subject: INTRO, SUBSCRIBE, UNSUBSCRIBE, SEARCH, REMOVE, SUSPEND, RESUME, DIGEST, RESEND, HELP) =======================3D=======================3 D= TO SEE MESSAGE POSTING GUIDELINES: Send a plain text email to [email protected] In the message SUBJECT, put just one word: INTRO =======================3D=======================3 D= TO UNSUBSCRIBE: Send a plain text email to [email protected] In the message SUBJECT, put just one word: UNSUBSCRIBE =======================3D=======================3 D= TO SEARCH ARCHIVES: Send a plain text email to [email protected] In the message SUBJECT, put just one word: SEARCH-n (where n is the number of days). In the message body, place any text to search for. =======================3D=======================3 D=

