Hi Pat,

> But I get an error because $objTriggerState is undefined.

This cannot be true, because you used New shared object.
Please use the debugger and check your code.
I suppose you are using the latest v17 build and you have dot-notation turned 
on.
--

Grüße/Regards,
[heubach-media] | Christian Sakowski
christian.sakow...@heubach-media.de
Tel: +49/(0)40/52 10 59-23




> Am 20.10.2018 um 15:50 schrieb Pat Bensky via 4D_Tech <4d_tech@lists.4d.com>:
> 
> Well I guess I must be doing something wrong :)
> Using v17r3:
> 
> In the Startup method I create a new Shared Object:
> 
> *C_OBJECT*($objTriggerState)  // 20/10/18
> 
> $objTriggerState:=*New shared object*()
> 
> 
> Subsequently I want to add something to that object.
> 
> 
> $State:="on"
> 
> *Use* ($objTriggerState)
> 
> processnumber:=*String*(*Current process*)
> 
> $objTriggerState.processnumber:=$State
> 
> *End use*
> 
> But I get an error because $objTriggerState is undefined.
> 
> According to the docs:
> 
> "*Shared objects* and *shared collections* are specific objects and
> collections *whose contents are shared between processes*."
> 
> So why is the object undefined?
> 
> It works OK if the object is an interprocess variable, but that's a bit
> pointless isn't it?
> 
> Pat
> 
> -- 
> *************************************************
> CatBase - Top Dog in Data Publishing
> tel: +44 (0) 207 118 7889
> w: http://www.catbase.com
> skype: pat.bensky
> *************************************************
> **********************************************************************
> 4D Internet Users Group (4D iNUG)
> Archive:  http://lists.4d.com/archives.html
> Options: https://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **********************************************************************


--
heubach media
Osterfeldstr. 12-14 | Haus 1 | Eingang Nord
22529 Hamburg
tel: 040 / 52 10 59 - 10 | fax: -99
mail: i...@heubach-media.de
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:4d_tech-unsubscr...@lists.4d.com
**********************************************************************

Reply via email to