View previous topic :: View next topic
|
Author |
Message |
sreenatha
New User
Joined: 21 Dec 2005 Posts: 7
|
|
|
|
hi ,
a small doubt regarding tables.......
suppose i have a field say 'name' defined in two tables as follows,
01 table-1 occurs 10 times
indexed by loc-idx.
05 name pic x(4).
02 table-2 occurs 10 times
indexed by loc-idx.
05 name pic x(4).
Now if i want to access 'name' variable in table-2 , how do i do it???
( i am using two includables which were having same names defined as above and both includables are compulsory ) |
|
Back to top |
|
|
KMK
New User
Joined: 29 Jul 2005 Posts: 18
|
|
|
|
Hi I guess,
name of table-1 and name of table-2 works . |
|
Back to top |
|
|
vikasc4
New User
Joined: 11 Dec 2005 Posts: 32
|
|
|
|
Hi,
KMK is right. This is called qualification of data item . If two variables under different group item have same name then we can use it.
Exanmple..
Move A to B of Group-1.
I think this will help, if wants more then tell me..
Regards
Vikas |
|
Back to top |
|
|
sreenatha
New User
Joined: 21 Dec 2005 Posts: 7
|
|
|
|
hi KMK,
how can i access seconf field in the array of table-1....
name ( index-name ) of table-1 ??
but in this case , the index-name is also not unique !!! |
|
Back to top |
|
|
prabs2006
Active User
Joined: 12 Jan 2006 Posts: 103
|
|
|
|
Hi,
The same index for two arrays certainly is wrong.This will give an error.
But am not sure abt the "name" field. If at all it is right , the only way it can be accessed by Tab1.name() and Tab2.name().
Please correct me if am wrong
Thanks & Regards
Prabs |
|
Back to top |
|
|
KMK
New User
Joined: 29 Jul 2005 Posts: 18
|
|
|
|
Hi ,
The index name should be uniquely defined. It cannot be qualified.
But Name data field can be qualified as
Name of Table-1 (subscript)
Name of Table-2 (subscript)
Cheers |
|
Back to top |
|
|
|