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:[email protected]
**********************************************************************

Reply via email to