Some senseless babbling from David Bowerman to Kees Wiegel
on 09-20-99 17:25 about NoValue condition...
DB> Kees Wiegel wrote in a message to All:
KW> In the beginning of a ObjREXX programma I use the clause 'Signal on
KW> NoValue' to trap novalue conditions.
KW> Lateron in the same programma I fill an array using the following
KW> instruction: BLogLines=WL.nn~MakeArray(Line)
KW> This causes a novalue condition for the variable LINE in the above
KW> clause.
KW> How come? How to avoid?
DB> What does the line where you assign a value to the variable LINE look
DB> like? If there is no assignment, LINE has no value and the trap is
DB> correct.
I recently looked at the OREXX docs to figure out just when the makearray
method is supposed to take an argument, and it's only when creating an
array from a stream object. The only two valid arguments are 'LINES' and
'CHARS'. It will, however, work for any subtring of each argument. So,
his code will work, but trigger the NOVALUE condition. To not trigger it,
he must enclose it in quotes, making it an explicit string, rather than an
implicit string (after all other evaluations of the symbol fail).
Mike Ruskai
thannymeister@yahoo.com
... Bring out your dead. Bring out your dead.
___ Blue Wave/QWK v2.20
--- Platinum Xpress/Win/Wildcat5! v3.0pr2
267/200
45
* Origin: FIDO QWK MAIL & MORE! WWW.DOCSPLACE.ORG (1:3603/140)
|