View previous topic :: View next topic
|
Author |
Message |
muthukumarapandian
New User
Joined: 08 Oct 2004 Posts: 42 Location: chennai, india
|
|
|
|
Hi,
Any one can tell me the comparision between usage is index and table with subscript as indexed item. |
|
Back to top |
|
|
priya
Moderator
Joined: 24 Jul 2003 Posts: 568 Location: Bangalore
|
|
|
|
Hi,
Usage is Index and INDEXED BY variables both are same. |
|
Back to top |
|
|
sinusam
New User
Joined: 06 Jan 2004 Posts: 18
|
|
|
|
Hi,
They are actually different.
A Variable defined with
USAGE IS INDEX - is called as INDEX DATA ITEM
A variable declared with
INDEXED BY - is called as INDEX NAME
The Index data item is a 4 byte elementary item (not necessarily connected with any table) that can be used to save INDEX NAME values for future reference.
A SET statement can be used to set the INDEX VALUE to an INDEX DATA ITEM.
INDEX NAMES are always associated with its Table.
While coding them please check the manuals for the rules of Comparing INDEX VALUEs and INDEX DATA ITEMs, and also movement of data between the two.
So, please be in alert when using INDEX VALUEs and INDEX DATA ITEMs.
Regards,
Sinu Sam |
|
Back to top |
|
|
muthukumarapandian
New User
Joined: 08 Oct 2004 Posts: 42 Location: chennai, india
|
|
|
|
Hi,
Then what is the use of that usage in index. |
|
Back to top |
|
|
narena
New User
Joined: 16 Mar 2005 Posts: 18
|
|
|
|
Hi,
If we declare a var with Usage Index, it will be used to store the value of the Indexed Variable. We define an array with indexed by clause & a var, which is called indexed variable.
The value of this indexed variable cannt be stored in Ordinary Variable. So we define a Var with Usage Index. |
|
Back to top |
|
|
|