TIP: Click on subject to list as thread! ANSI
echo: os2rexx
to: Kees Wiegel
from: David Noon
date: 1999-09-19 00:00:00
subject: NoValue condition

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)

SOURCE: echoes via The OS/2 BBS

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.