View previous topic :: View next topic
|
Author |
Message |
Khwairakpam Raju Singh
New User
Joined: 05 Dec 2007 Posts: 29 Location: Bangalore
|
|
|
|
Hi,
I want to used compound variable to implementation of some code. And I have stored some element in the compound variable but the thing is that when I tried to display to number of element present in the compound variable ,its not isplaying the total no..Whats wrong with the following code:
Code: |
var.1='Tom'
var.2='Jon'
var.3='Sam'
say var.0 /* displaying var.0 only*/
|
|
|
Back to top |
|
|
Aaru
Senior Member
Joined: 03 Jul 2007 Posts: 1287 Location: Chennai, India
|
|
|
|
Raju,
Var.0 is considered as a variable and hence the same is displayed after the execution of the say command.
where have u defined the variable var. as a stem variable? if you are doing any read operation, then read the file using EXECIO into a stem variable and then try displaying the value of var.0 . |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
If you load a stem manually, as in your code above, then you also need to load the stem.0 component manually too. |
|
Back to top |
|
|
|