|
|
| Author |
Message |
hazard84414 Warnings : 1 New User
Joined: 20 May 2006 Posts: 4
|
|
|
|
Hi, everyone:
Could you give me a sample which declare a array and how to use it ? |
|
| Back to top |
|
 |
References
|
Posted: Sun May 21, 2006 7:38 pm Post subject: Re: Could you give me a sample which declare a array and how to |
 |
|
|
 |
banu
New User
Joined: 09 Aug 2005 Posts: 8 Location: Chennai
|
|
|
|
DCL
NAME(3) CHAR(1) INIT(' ');
/* NAME -> Array */
Get List (Name); /* Get the Input */
Do I = 1 to Hbound(Name,1); /* Hbound -> Highest limit of the array */
Put list (Name(i)); /* Display the Output */
End;
-- I Hope this is what you required... |
|
| Back to top |
|
 |
banu
New User
Joined: 09 Aug 2005 Posts: 8 Location: Chennai
|
|
|
|
| In my previous example, I forgot to give declaration for the variable 'I'. |
|
| Back to top |
|
 |
|
|