<HTML><FONT FACE=arial,helvetica><FONT SIZE=2 FAMILY="SANSSERIF" FACE="Arial" LANG="0">>Does anyone have a function that parses out only the<BR>
>active menuitems from a menuList?<BR>
<BR>
<BR>
Try this :<BR>
<BR>
put the text of btn "Foo" into tMenuText<BR>
-- strip off the elading tabs for submenus<BR>
replace tab with empty in tMenuText<BR>
-- now filter out the divider lines<BR>
repeat for each line tMenuLine in tMenuText<BR>
if tMenuLine is not among the items of "-,(-"<BR>
then put tMenuLine &return after tStrippedList<BR>
end repeat<BR>
-- finally clean up the trailing return<BR>
delete char -1 of tStrippedList<BR>
<BR>
Then the variable tStrippedList should contain what<BR>
you want. I was looking for a way to "filter" instead<BR>
of the "repeat" loop but didn't find one right away.<BR>
</BLOCKQUOTE><BR>
<BR>
Not exactly, Jan. This retains the non-selectable lines of a menu which need to be stripped. I'm having a re-think here.<BR>
<BR>
/H<BR>
</FONT></HTML>