At 05:41 PM 5/4/2005, Bill Downall wrote:
I can't find an R:BASE form object (like variable list box or variable
user-defined list box) that allows multiple selections. What strategies
can you help me brainstorm?
Bill,
You can achieve that goal by using the "Variable User Defined ListBox"
control.
01. Use the following PROPERTY command as On After Start EEP:
PROPERTY <VariableUserDefinedListBoxCompID> MULTISELECT 'TRUE'
02. Dynamically populate the data using the DECLARE cursorname CURSOR
command. (On After Start EEP or Optional Click of a Button)
Example:
PROPERTY <VariableUserDefinedListBoxCompID> LISTITEMSADD .value
Mike Byerley (an Authorized R:BASE Developer) has an excellent demo
to demonstrate the use of such feature:
http://www.rbasecommunity.com (Item 010)
Sample Application: Variable Rich Edit Demo and Tutorial
01. Take that demo and add the following line (as line #6) as
On After EEP for "MultiCol" form.
PROPERTY ListColumns MULTISELECT 'TRUE'
Save the form.
02. At the R> Prompt:
RUN RunDemo.RMD
03. Click on [Relative Speed Load ListBox] Office Button
04. Click on [Single Col Load Via Cursor] Button
Notice the speed and the dynamic load process ...
05. Click on any item in the list box
Hold down [Ctrl] key and then select another item ...
Notice the Multi-Select feature of Variable User Defined ListBox.
Hope that helps!
Very Best R:egards,
Razzak.
P.S.
MULTISELECT property of the Variable User Defined ListBox is no longer
the un-documented feature <g>.