RPG Array
5 pts.
0
Q:
RPG Array
Hello !
Can I check for all the elements of an Array in single statement ? e.g. If Array(*All) = *Blanks ?
I want to check that all elements of an array is blank or not.
ASKED: Nov 24 2008  9:47 AM GMT
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
0
23625 pts.
0
A:
 RATE THIS ANSWER
0
Click to Vote:
  •   0
  •  0
  • AddThis Social Bookmark Button

Hi,

Doesn't the following work ?

If Array = *Blanks

Regards,

Martin Gilbert.
Last Answered: Nov 24 2008  11:36 AM GMT by Gilly400   23625 pts.
0
0
Discuss This Answer:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _



_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

Brettharris   10 pts.  |   Nov 24 2008  6:30PM GMT

I don’t think ‘If Array = *blanks’ will work - the compiler is expecting an index to be referenced.

This may be a pain, but I’ve found that if I create a data structure where the array overlays a field, then I can check that field for blanks.

For instance, if my array is defined like this:

d ds
d aDS 10
d aArray 2 dim(5) inz overlay(aDS)

The array (aArray) overlays field aDS. Field aDS is the same size as the entire array. I can then use field aDS to check for blanks.

 
0