Microsoft KB Archive/104258: Difference between revisions
m (Text replacement - """ to """) |
m (Text replacement - "&" to "&") |
||
Line 31: | Line 31: | ||
<pre> test(i) = " " + test(i)</pre> | <pre> test(i) = " " + test(i)</pre> | ||
<p>ENDFOR *** Initialize variables</p> | <p>ENDFOR *** Initialize variables</p> | ||
<pre> selected = 0 & | <pre> selected = 0 && Variable to store number of selected items | ||
checked = " " & | checked = " " && Variable to store selected items | ||
DEFINE WINDOW test FROM 0,0 TO 17,20 TITLE "Test Application" | DEFINE WINDOW test FROM 0,0 TO 17,20 TITLE "Test Application" |
Latest revision as of 12:24, 21 July 2020
Sample Code for Creating Multiple-Selection GET List BoxID: Q104258 2.00 2.50 2.50a | 2.50 2.50a 3.00 MS-DOS | WINDOWS The information in this article applies to:
SUMMARYFoxPro does not include a multiple-selection GET object that is activated with a READ command. However, you can create a multiple-selection list object by storing the information that is selected in the VALID clause for the list object, as explained below. MORE INFORMATIONThere are several different methods of creating a multiple-selection list object. The following example demonstrates how to make selections in an array. (In the example, the array is called "test".) The selections are marked by a check mark [CHR(251)], and then the selection is displayed when the Done button is chosen. The VALID routine for the push button sorts the array and stores the selected options in a variable. All options that were selected are stored in the "checked" variable. Notes
Additional reference words: VFoxWin 3.00 FoxDos FoxWin 2.00 2.50 2.50a list popup multi select multi-select multiselect multiseletion KBCategory: KBSubcategory: FxprgGeneral Keywords : kbcode FxprgGeneral Version : 2.00 2.50 2.50a | 2.50 2.50a 3.0 Platform : MS-DOS WINDOWS |
Last Reviewed: May 22, 1998 |