Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- dBsee 4.6 - The Library - Norton Guide http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]

   The Selection column (Tag column) is a particular type of control that
   can be used exclusively in a List-box. It is similar to any List-box
   column but can only contain the selection symbol ".". The selection
   column manages the (multiple) selection of the data contained in the
   List-box.

   To insert a selection column in the List-box, use the Alt-2 keys and
   then press the Ok button. A List-box can contain only one selection
   column, whose position, in column order, will always be first.

   To store which element (or record) has been selected, the system uses an
   array, in which the record numbers of the rows selected with the
   appropriate Ctrl-Space Bar keys, will be saved. If the List box
   operates on an array, the pointers array holds the elements tagged. The
   programmer can successively process the contents by manually adding the
   necessary code to the generated sources.

Example:

   A Push button is used to delete the marked records. The function that the
   button is calls, is:

     
     #INCLUDE "dfWin.ch"
     
     LOCAL nCnt
     
     // For all selected records
     FOR nCnt := 1 TO LEN(LSB:W_TAGARRAY)
     
        // Goto the record...
        (LSB:W_ALIAS)->(DBGOTO(LSB:W_TAGARRAY[nCnt]))
     
        // ...and delete it
        (LSB:W_ALIAS)->(DBDELETE())
     
     NEXT nCnt
     
     // Reset the array
     ASIZE(LSB:W_TAGARRAY,0)
     
     // Reset the listbox
     tbTop( LSB )
     

   The LSB:W_TAGARRAY array contains the record numbers or the array
   elements tagged.

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson