Further you need to use pointers into the compnent to get value. That is a
guard against the following

In host db you have a variable named Version_txt which is set to “10.5 4D
version x.x”

You can have a variable named Version_txt in the component with a different
setting for example “1.5 4D version x.y”

regards

Chuck

On Tue, Jul 10, 2018 at 1:15 PM, Dani Beaubien via 4D_Tech <
[email protected]> wrote:

> Each component has it’s own namespace for it’s variables. They behave
> exactly as they would as per 4D Rules. Interprocess vars have a scope
> across all processes, process vars only have scope with the specific
> process.
>
> So in your example, that process var in process 1 would be “A” and in
> process 2 it would be “” since it had not been set.
>
> The host structure would not be able to access those vars unless the
> component has a method that the host can call and returns the value of the
> var.
>
> Hopefully that helps.
>
> Dani
>
>
>
> > On Jul 10, 2018, at 11:02 AM, Chip Scheide via 4D_Tech <
> [email protected]> wrote:
> >
> > In a multi-process 4D, less then version v16, environment (not
> > multi-threaded),
> > 4D stand alone (single user) or C/S (client side),
> >
> > - a component is loaded.
> > - In process 1 the component is called, and (internal to the component)
> > a process var (x) is set to value "A"
> > - In process 2 the component is called, and (internal to the component)
> > the process var (x) is referenced. What is the value in of x inside the
> > component, in process 2?
> > -- "A"
> > -- ""
> > ???
> >
> >
> > Thanks
> > Chip
> >
> > ---------------
> > 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:[email protected]
> > **********************************************************************
>
> **********************************************************************
> 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:[email protected]
> **********************************************************************
>



-- 
-----------------------------------------------------------------------------------------
 Chuck Miller Voice: (617) 739-0306 Fax: (617) 232-1064
 Informed Solutions, Inc.
 Brookline, MA 02446 USA Registered 4D Developer
       Providers of 4D, Sybase & SQL Server connectivity
          http://www.informed-solutions.com
-----------------------------------------------------------------------------------------
This message and any attached documents contain information which may be
confidential, subject to privilege or exempt from disclosure under
applicable law.  These materials are intended only for the use of the
intended recipient. If you are not the intended recipient of this
transmission, you are hereby notified that any distribution, disclosure,
printing, copying, storage, modification or the taking of any action in
reliance upon this transmission is strictly prohibited.  Delivery of this
message to any person other than the intended recipient shall not
compromise or waive such confidentiality, privilege or exemption
from disclosure as to this communication.
**********************************************************************
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:[email protected]
**********************************************************************

Reply via email to