SELECTION$()

From Liberty BASIC Family
Jump to navigation Jump to search
Not supported in Just BASIC Not supported in Liberty BASIC Not supported in Liberty BASIC 5 Supported in Run BASIC

Description

Get the selection from a list-box

Syntax

  1. #handle SELECTION$()

Hints

This function is supported by the following objects

Example

dim a$(10)
a$(1)="One"
a$(2)="Two"
a$(3)="Three"
selected$=""

listbox #lb,a$(),10
print
link #sel, "Get Selection",[selected]
wait

[selected]
selected$=#lb selection$()
print
print "You selected ";selected$
end

Useful Procedures

' Place a useful function or sub using this keyword here