Talk:Read a configuration file: Difference between revisions

→‎REXX vs ooRexx: added a note about the REXX program example (and it's fix). -- ~~~~
(→‎REXX vs ooRexx: specified which REXXes failed with a (non-classic) REXX example. -- ~~~~)
(→‎REXX vs ooRexx: added a note about the REXX program example (and it's fix). -- ~~~~)
 
(2 intermediate revisions by one other user not shown)
Line 109:
:: * Received an ''incorrect call to routine''   '''value'''   ----- at this point, I stopped looking for more errors.
 
: I don't fealfeel conformatablecomfortable doing this level of debugging/bench-testing of a REXX program that clearly wasn't tested with any Classic REXX.   Maybe the author of the program could perform that task better. -- [[User:Gerard Schildberger|Gerard Schildberger]] ([[User talk:Gerard Schildberger|talk]]) 17:31, 24 July 2013 (UTC)
::: Thank you for telling me/us (I am NOT the author). --[[User:Walterpachl|Walterpachl]] ([[User talk:Walterpachl|talk]]) 18:22, 24 July 2013 (UTC)
 
:::: I tested now the REXX program and I think that there is a problem with bad variable names
<lang rexx>
varList=varList xxx /*add it to the list of vARiables*/
if value='' then value='true' /*if no value, then use "true". */
if symbol(xxx)=='BAD' then do /*can REXX use the variable name?*/
Say xxx 'is a bad name'
badVar=badVar+1; bad=bad xxx; iterate
end
</lang>
:::: bad names should not go into varlist!?! --[[User:Walterpachl|Walterpachl]] ([[User talk:Walterpachl|talk]]) 19:47, 24 July 2013 (UTC)
 
::::: Yes, you're correct. &nbsp; If the variable name (in the configuration file) isn't a legal REXX variable name, then it shouldn't be added to the list of variable names (varList) in the REXX program. &nbsp; The REXX code has been fixed. -- [[User:Gerard Schildberger|Gerard Schildberger]] ([[User talk:Gerard Schildberger|talk]]) 18:12, 27 July 2013 (UTC)