langs a-z
This commit is contained in:
parent
db842d013d
commit
d066446780
11389 changed files with 98361 additions and 1020 deletions
12
Task/Menu/BASIC/menu.basic
Normal file
12
Task/Menu/BASIC/menu.basic
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
function sel$(choices$(), prompt$)
|
||||
if ubound(choices$) - lbound(choices$) = 0 then sel$ = ""
|
||||
ret$ = ""
|
||||
do
|
||||
for i = lbound(choices$) to ubound(choices$)
|
||||
print i; ": "; choices$(i)
|
||||
next i
|
||||
input ;prompt$, index
|
||||
if index <= ubound(choices$) and index >= lbound(choices$) then ret$ = choices$(index)
|
||||
while ret$ = ""
|
||||
sel$ = ret$
|
||||
end function
|
||||
Loading…
Add table
Add a link
Reference in a new issue