Yes, this is expected. You can only do a query() on a Collection with objects.
Where do you get these values? You should select before to get only non-null 
values or remove them from the collection with a For/Each-Loop.
--

Grüße/Regards,
[heubach-media] | Christian Sakowski
[email protected]
iChat/AIM: SakowskiF
Tel: +49/(0)40/52 10 59-23



> Am 26.07.2018 um 22:09 schrieb Cannon Smith via 4D_Tech 
> <[email protected]>:
> 
> As a follow up, I thought I would try to remove the null’s from the 
> collection use collection.query(), but I don’t know what to use for the query 
> string since there are no named object properties in the collection.
> 
>       $cTest:=New collection(100;200;Null;80)
>       $lMin:=$cTest.query("#null").min() //<—What should the query string be? 
> Or should I be using a different function?
> 
> Anyone know what I should be doing here?
> 
> Thanks.
> 
> --
> Cannon.Smith
> Synergy Farm Solutions Inc.
> Hill Spring, AB Canada
> 403-626-3236
> <[email protected]>
> <www.synergyfarmsolutions.com>
> 
> 
>> On Jul 26, 2018, at 1:59 PM, Cannon Smith via 4D_Tech <[email protected]> 
>> wrote:
>> 
>> I was surprised that the following code tries to return null instead of 80:
>> 
>> $cTest:=New collection(100;200;Null;80)
>> $lMin:=$cTest.min()
>> 
> 
> **********************************************************************
> 4D Internet Users Group (4D iNUG)
> Archive:  http://lists.4d.com/archives.html
> Options: https://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:[email protected]
> **********************************************************************


--
heubach media
Osterfeldstr. 12-14 | Haus 1 | Eingang Nord
22529 Hamburg
tel: 040 / 52 10 59 - 10 | fax: -99
mail: [email protected]
home: www.heubach-media.de
Geschäftsführer|CEO: Matthias Heubach

Mieten Sie Ihre Computer, iPads & Drucker für Ihre Events bei:
http://www.milo-rental.com

Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte Informationen.
Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten 
haben,
informieren Sie bitte sofort den Absender und vernichten Sie diese Mail.
Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail ist nicht 
gestattet.
 
This e-mail may contain confidential and/or privileged information.
If you are not the intended recipient (or have received this e-mail in error)
please notify the sender immediately and destroy this e-mail.
Any unauthorized copying, disclosure or distribution of the
material in this e-mail is strictly forbidden.
**********************************************************************
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:[email protected]
**********************************************************************

Reply via email to