In a message dated 09-18-99, Kees Wiegel said to All about "NoValue
condition"
Hi Kees,
KW>In the beginning of a ObjREXX programma I use the clause
KW>'Signal on NoValue' to trap novalue conditions.
KW>Lateron in the same programma I fill an array using the following
KW>instruction:
KW> BLogLines=WL.nn~MakeArray(Line)
KW>This causes a novalue condition for the variable LINE in the above
KW>clause.
KW>How come?
The variable LINE has not yet been assigned a value. However, it shouldn't
be a variable in this context.
KW>How to avoid?
Put LINE in apostrophes or quotes:
BLogLines=WL.nn~MakeArray('Line')
It should really be a literal character string.
Regards
Dave
___
* MR/2 2.25 #353 * Redneck: Refers to 5th grade as "My senior year."
--- Maximus/2 2.02
* Origin: OS/2 Shareware BBS, telnet://bbs.os2bbs.com (1:109/347)
|