I didn't say it in the last post well enough, but the enumgroup returns an array.
as it's indexed already.
if you want to make it an array, and want it place them directly to it you have in your code, you would need to make two queries. first to let you know how big your array is and so on.
easiest, if you really want it this way (I bet you don't want to have all those local groups there too) instead of ingroupping:
place the groups in string.
divide that string into an array with split()
so, to have an array, it would look like:
code:
$=-1
do $=$+1
$f=enumgroup($) ? $f
$grouparray=$grouparray+","+$f
until $f=""
$grouparray=split($grouparray)
for $c=0 to ubound(menulist)
? $c "." menulist[$c]
next
[ 21. August 2002, 23:13: Message edited by: Lonkero ]
_________________________
!download
KiXnet