Link to home
Start Free TrialLog in
Avatar of Mehram
MehramFlag for Pakistan

asked on

To know the length of a structure.

pb 10.5

If a structure contains 5 items then the length of the structure is 5.

What is the command to find the length of a structure?
Avatar of lbushby
lbushby

I don't fully understand the question.  Can you post an example structure definition along with what you would expect the 'length' to be?
Avatar of Mehram

ASKER

Take this strucure

global type str_menu from structure
      distr_acc_menu            m_distr_acc_menu
      distr_menu            m_distr_menu
      distr_setup_menu            m_distr_setup_menu
      distr_pur_sales_menu            m_distr_pur_sales_menu
end type

there are 4 menu items in this structure, hence the length is 4.

I want to know the length via script
ASKER CERTIFIED SOLUTION
Avatar of lbushby
lbushby

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Mehram

ASKER

Just like that!!!!


I love u!!!!