Dialog
   &
(array) listbox

- populate the listbox with the needed data
- display using dialog
on accept, process selected items

selected items are TRUE for the list box row (see below code to count 
how many selected)

  //(m) arylstbx_How_Many_Selected
  // $1 - pointer - to listbox

  //RETURNS - longint - number of rows selected in an array based 
listbox.  Returns 0 if none selected
  // ∙ Created 9/6/12 by Chip - 
C_POINTER($1;$Listbox)
C_LONGINT($0;$How_Many;$Last;$Loc)

$Listbox:=$1
$Last:=0

Repeat   //check the array of booleans for selected row(s)
$Loc:=Find in array($Listbox->;True;$Last)

If ($Loc>0)  //something was found
$How_Many:=$How_Many+1
$Last:=$Loc+1
End if 
Until ($Loc<0)
$0:=$How_Many

On Fri, 20 Apr 2018 16:02:04 -0400, Alan Tilson via 4D_Tech wrote:
> Hello,
> 
> Could someone please point me to a simple way to request information in the
> form of a list from which multiple selections may be made? I started to
> build a new request form  but it seems like this should almost be an
> automatic function!
> 
> Any ideas will be appreciated.
> 
> Thanks,
> Alan
> **********************************************************************
> 4D Internet Users Group (4D iNUG)
> FAQ:  http://lists.4d.com/faqnug.html
> Archive:  http://lists.4d.com/archives.html
> Options: https://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **********************************************************************
---------------
Gas is for washing parts
Alcohol is for drinkin'
Nitromethane is for racing 
**********************************************************************
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**********************************************************************

Reply via email to