Re: Which rows are selected?

2017-03-10 Thread Arnaud de Montard via 4D_Tech

> Le 10 mars 2017 à 20:56, bob.miller--- via 4D_Tech <4d_tech@lists.4d.com> a 
> écrit :
> 
> Hi Everyone,
> 
> Call it Friday, call it memory loss, but don't call it lack of effort. 
> I've been scouring the docs looking for how, using an array-type listbox 
> with the 'Selection Mode = Multiple' attribute set, how can I detect which 
> rows are selected?[...]

use the boolean array of the listbox:
  $arr_p:=object get pointer(named object;"listboxName")
  $firstSelected:=find in array($arr_p->;true)
  $totalSelected_l:=count in array($arr_p->;true)

-- 
Arnaud de Montard 



**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

RE: Which rows are selected?

2017-03-10 Thread Vance Villanueva via 4D_Tech
Hi Bob,

Here is also a KB example about this:

http://kb.4d.com/assetid=76902

Regards,

Vance Villanueva




-Original Message-
From: 4D_Tech [mailto:4d_tech-boun...@lists.4d.com] On Behalf Of bob.miller--- 
via 4D_Tech
Sent: Friday, March 10, 2017 11:57 AM
To: 4d_tech@lists.4d.com
Cc: bob.mil...@parker.com
Subject: Which rows are selected?

Hi Everyone,

Call it Friday, call it memory loss, but don't call it lack of effort.
I've been scouring the docs looking for how, using an array-type listbox with 
the 'Selection Mode = Multiple' attribute set, how can I detect which rows are 
selected?

It's going to be a big 'ah, duh!' moment, but I just can't find it.

Thanks for the help -


Bob Miller
Chomerics, a division of Parker Hannifin Corporation




**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**
**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Which rows are selected?

2017-03-10 Thread Jim Dorrance via 4D_Tech
A ListBox is a boolean array, with an element returning True representing a
selected rows.

On Fri, Mar 10, 2017 at 8:56 PM, bob.miller--- via 4D_Tech <
4d_tech@lists.4d.com> wrote:

> Hi Everyone,
>
> Call it Friday, call it memory loss, but don't call it lack of effort.
> I've been scouring the docs looking for how, using an array-type listbox
> with the 'Selection Mode = Multiple' attribute set, how can I detect which
> rows are selected?
>
> It's going to be a big 'ah, duh!' moment, but I just can't find it.
>
> Thanks for the help -
>
>
> Bob Miller
> Chomerics, a division of Parker Hannifin Corporation
>
>
>
>
> **
> 4D Internet Users Group (4D iNUG)
> FAQ:  http://lists.4d.com/faqnug.html
> Archive:  http://lists.4d.com/archives.html
> Options: http://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **




-- 
Jim Dorrance
jim.dorra...@gmail.com
4...@dorrance.eu
www.4d.dorrance.eu

PS: If you know of anyone that needs an experienced 4D programmer to add
energy and experience to their team, please let me know. I have
experience in many areas. Reasonable rates. Remote or Paris only.
**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Which rows are selected?

2017-03-10 Thread Keith Culotta via 4D_Tech
listBox{$row}=true

Keith - CDI

> On Mar 10, 2017, at 1:56 PM, bob.miller--- via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> Hi Everyone,
> 
> Call it Friday, call it memory loss, but don't call it lack of effort. 
> I've been scouring the docs looking for how, using an array-type listbox 
> with the 'Selection Mode = Multiple' attribute set, how can I detect which 
> rows are selected?
> 
> It's going to be a big 'ah, duh!' moment, but I just can't find it.
> 
> Thanks for the help -
> 
> 
> Bob Miller
> Chomerics, a division of Parker Hannifin Corporation
> 
> 
> 
> 
> **
> 4D Internet Users Group (4D iNUG)
> FAQ:  http://lists.4d.com/faqnug.html
> Archive:  http://lists.4d.com/archives.html
> Options: http://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **

**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Which rows are selected?

2017-03-10 Thread bob.miller--- via 4D_Tech
Hi Everyone,

Call it Friday, call it memory loss, but don't call it lack of effort. 
I've been scouring the docs looking for how, using an array-type listbox 
with the 'Selection Mode = Multiple' attribute set, how can I detect which 
rows are selected?

It's going to be a big 'ah, duh!' moment, but I just can't find it.

Thanks for the help -


Bob Miller
Chomerics, a division of Parker Hannifin Corporation




**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**