![]() ![]() ![]() ![]() | Table Of Contents | Index |
When the window appears, the space bar toggles the marked status of the line. The right arrow sets the marked status and the left arrow resets the marked status. Ctrl-Right-Arrow marks all lines, Ctrl-Left-Arrow unmarks all lines. The return key accepts the selection and exits. The ESC key aborts.
If using a mouse, the left button toggles the mark on the current line. The right button accepts and exits.
If no selections are made by marking selections then pressing Return on an entry selects the item the cursor bar is over. If ESC is pressed, the DestinationArray is left unchanged. You can test LastKey to see what was pressed.
PickMany also creates two other arrays. One is called PickManyPositions and it is a list of numbers with the positions in the array that were picked. The other array is called PickManyFlags and is an array of boolean (True/False) values that are set in real time as the users chooses.
Example:
;PICK&DEL.MNU Usage "MARXMENU PICK&DEL mask" ; var Temp, Work, Hitlist BoxHeader "PICK and DEL: A MarxMenu Demo" BoxFooter "Space=Mark, <Enter>=DoIt" DrawBox 25,5,30,15 ReadDirectory(Cmdline,Work) ;Read Dir into Array work PickMany(Work,Hitlist) ;Use PickMany to select files! BoxHeader "Deleting Files" DrawBox 20,10,40,4 Loop Hitlist Writeln " Now Deleting File: " LoopVal DelFile LoopVal wait (10) EndLoop EraseTopWindow EraseTopWindow
See Also: | PickManyPositions | PickOne | PickManyFlags | PickRedisplay |
---|
Category: | String | Array |
---|
![]() ![]() ![]() ![]() | Table Of Contents | Index |
|