Well, Tore's example was only an example. Usually, you'd just INDEX ON CUST_NAME TAG CUST_NAME. Since the CUST_NAME field is a fixed length (30 or whatever) the index key will be a fixed length and you won't run into any problems.
>My question is this. If i use your advise in my indexing I get lenght 16 like
>with padr or this is only for one line=16 key lenght
> Use student
> pack
> Index On descr Tag descr
> Index On code Tag code
> Index On lcode+descr Tag lvldes
> Index On surn Tag surn
> Index On scode Tag scode
> Index On lcode Tag lcode
> Index On sex Tag sex
> Index On fname Tag fname
> Index On joind Tag joind
> Index On dbirth Tag dbirth
> Index On roll Tag roll
> Index On tobt Tag tobt
> Index On mont Tag mont
> Index On ldate Tag ldate
> Index On aattend Tag aattend
>Index On scode+lcode+sec Tag sls>