return index of list's defined fields
k=definedfields(l)
a list , tlist or mlist variable.
a vector of index.
If l is a list tlist
mlist k=definedfields(l) returns in
k the indices of the defined list fields. This
function is useful because indexing undefined fields produces an
error.