' Modified from a routine by Steve Trace
Function Mybarmenu$
(y
, x
, spacing
, tc
, bc
, prompts$
())
description
= UBound(prompts$
, 2) okprompt$ = ""
Print prompts$
(i
, prompt
);
Spc(spacing
);
okprompt$
= okprompt$
+ Chr$(Asc(prompts$
(i
, prompt
))) current = top
moveto = current
ChoiceSelected$ = ""
While ChoiceSelected$
= "" Print prompts$
(current
, prompt
);
Print prompts$
(current
, description
);
Call specialkey
(ch$
, moveto
, top
, bottom
) ChoiceSelected$
= Chr$(Asc(prompts$
(current
, prompt
))) ' ELSEIF INSTR(okprompt$, UCASE$(ch$)) > 0 THEN
Print prompts$
(current
, prompt
);
current = moveto
ch$ = ""
Mybarmenu = ChoiceSelected$