Re: Shared Object - NOT!

2018-10-20 Thread Keisuke Miyako via 4D_Tech
I prefer to explain it this way:

when you pass a New object or New collection  to a method (subroutine),
that object or collection is shared between the 2 methods, caller and callee,
because they are running in the same process.

if you execute $1.foo:="bar" in the callee,
the object from the caller is also updated,
because they are in fact referenced to the same object.

if you do the same across processes,
i.e. pass a New object or New collection to New process, CALL WORKER or CALL 
FORM,
the object or collection is not shared between the 2 methods, caller and callee,
because they are not running in the same process.

the best way to share an object or collection between processes is to pass a 
shared object or shared collection as a parameter.
there is no need to use Storage, there is no need to use interprocess variables.
you just create a shared object or shared collection, and pass it as an 
argument to another process or worker.
the received object is not a copy, it is a shared reference to the same shared 
object.

Storage is not mandatory, if you always pass shared objects using parameters,
which is good practice, according the law of Demeter.

https://en.wikipedia.org/wiki/Law_of_Demeter

the reason why Storage often pops up in the context of interprocess variables,
is because we recognise that in many applications, interprocess variables are 
casually references all over the place.
it is provided as a last resort, a global shared object to which you can attach 
all your shared objects
so that you can access them from anywhere in your code, without using 
parameters.

> 2018/10/21 13:11、lists via 4D_Tech <4d_tech@lists.4d.com>のメール:
>
> In order to share an object between processes without using an interprocess 
> variable, you must use the "Storage" container/catalog.




**
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
**

RE: Shared Object - NOT!

2018-10-20 Thread lists via 4D_Tech
Hi Pat,

In order to share an object between processes without using an interprocess 
variable, you must use the "Storage" container/catalog. 
In your startup:

Use(Storage)
Storage.TriggerState:= New shared object
End use


Later in your subsequent code, you assign the contents:

$MyTrigger:= Storage.TriggerState

Use($MyTrigger) 
$ MyTrigger.processnumber:=$state
End use

Lahav


-Original Message-
From: 4D_Tech <4d_tech-boun...@lists.4d.com> On Behalf Of Pat Bensky via 4D_Tech
Sent: Saturday, October 20, 2018 9:51 AM
To: 4D iNug Technical <4d_tech@lists.4d.com>
Cc: Pat Bensky 
Subject: Re: Shared Object - NOT!

That's how the example in the docs is.
I've tried it with a process variable - same problem.

Pat

On Sat, 20 Oct 2018 at 15:52, Paul Lovejoy via 4D_Tech <4d_tech@lists.4d.com>
wrote:

> How could it be shared between processes with a name starting with $?
>
>
>
> Paul
>
> > On 20 Oct 2018, at 15:50, Pat Bensky via 4D_Tech 
> > <4d_tech@lists.4d.com>
> wrote:
> >
> > 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
> > 
> > **
> **
> 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
> **



--
*
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
**
**
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
**

Re: Mac OS 10.14 Mojave and 4D 15

2018-10-20 Thread Balinder Walia via 4D_Tech
+1 to Virtualbox, it is highly configurable and can be automated using
simple config files...to setup perfect dev environment, networking etc.

Balinder

On Sat, 20 Oct 2018 at 22:17, JOHN BAUGHMAN via 4D_Tech <
4d_tech@lists.4d.com> wrote:

> Kirk,
>
> I highly recommend Oracle VirtualBox it’s FREE and I have found it
> far easier to setup and maintain than either VMWAre or Parallels. Oracle
> does a great job of keeping it updated. Just had an update this morning.
>
> I am currently running Windows 2008 Server 32bit and 64bit,
> Windows 7 and Windows 10. Passing files between the Mac the VMs is seamless
> and running 4D Client/Server in any combination between multiple VMs and
> the Mac works flawlessly.
>
> I can’t say enough about how good and reliable it is. None of the
> never ending hassles I had furs with Parallels then VMWare.
>
> John
>
>
> John Baughman
> 1331 I Street
> Kailua, Hawaii  96734
> (808) 262-0328
> john...@hawaii.rr.com
>
> > On Oct 20, 2018, at 10:58 AM, Kirk Brooks via 4D_Tech <
> 4d_tech@lists.4d.com> wrote:
> >
> > i,
> > I really haven't good luck attempting to use VMWare and am not
> particularly
> > moved to buy Parallels when I had all the parts laying around to come up
> > with a perfectly good solution. If I were making a habit of needing that
> > older system I might take a look at it but this works for what I need.
> >
> > On Fri, Oct 19, 2018 at 11:25 PM Milan Adamov via 4D_Tech <
> > 4d_tech@lists.4d.com> wrote:
> >
> >>
> >>
> >>> On Oct 20, 2018, at 01:16, Kirk Brooks via 4D_Tech <
> 4d_tech@lists.4d.com>
> >> wrote:
> >>>
> >>> On the other hand I spent a couple of hours setting up an external
> drive
> >> as
> >>> a boot drive (with Mavericks!) so I can boot an old laptop into that
> for
> >>> working with a v11 db. Just a thought.
> >>
> >> Why not virtualizing it if you have Parallels or VMWare Fusion? It is
> not
> >> breaking Apple license regarding virtualization since Lion, you can
> install
> >> both client and server in virtual machine.
> >>
> >> Milan
> >>
> >>
> >> **
> >> 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
> >> **
> >
> >
> >
> > --
> > Kirk Brooks
> > San Francisco, CA
> > ===
> >
> > *We go vote - they go home*
> > **
> > 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
> > **
>
> **
> 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
> **
**
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
**

Re: Mac OS 10.14 Mojave and 4D 15

2018-10-20 Thread JOHN BAUGHMAN via 4D_Tech
Kirk,

I highly recommend Oracle VirtualBox it’s FREE and I have found it far 
easier to setup and maintain than either VMWAre or Parallels. Oracle does a 
great job of keeping it updated. Just had an update this morning. 

I am currently running Windows 2008 Server 32bit and 64bit,  Windows 7 
and Windows 10. Passing files between the Mac the VMs is seamless and running 
4D Client/Server in any combination between multiple VMs and the Mac works 
flawlessly. 

I can’t say enough about how good and reliable it is. None of the never 
ending hassles I had furs with Parallels then VMWare. 

John


John Baughman
1331 I Street
Kailua, Hawaii  96734
(808) 262-0328
john...@hawaii.rr.com

> On Oct 20, 2018, at 10:58 AM, Kirk Brooks via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> i,
> I really haven't good luck attempting to use VMWare and am not particularly
> moved to buy Parallels when I had all the parts laying around to come up
> with a perfectly good solution. If I were making a habit of needing that
> older system I might take a look at it but this works for what I need.
> 
> On Fri, Oct 19, 2018 at 11:25 PM Milan Adamov via 4D_Tech <
> 4d_tech@lists.4d.com> wrote:
> 
>> 
>> 
>>> On Oct 20, 2018, at 01:16, Kirk Brooks via 4D_Tech <4d_tech@lists.4d.com>
>> wrote:
>>> 
>>> On the other hand I spent a couple of hours setting up an external drive
>> as
>>> a boot drive (with Mavericks!) so I can boot an old laptop into that for
>>> working with a v11 db. Just a thought.
>> 
>> Why not virtualizing it if you have Parallels or VMWare Fusion? It is not
>> breaking Apple license regarding virtualization since Lion, you can install
>> both client and server in virtual machine.
>> 
>> Milan
>> 
>> 
>> **
>> 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
>> **
> 
> 
> 
> -- 
> Kirk Brooks
> San Francisco, CA
> ===
> 
> *We go vote - they go home*
> **
> 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
> **

**
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
**

Re: Help->v11 to v17 Upgrade or New?

2018-10-20 Thread Kirk Brooks via 4D_Tech
Robert,
What I was dropping not-so-subtle hints about is working out the interface
for the GitHub API, which I found - unwelcoming, to support exporting
directly to GitHub from 4D and allowing me to pull from it as well. All the
tools for this are already in 4D, it's just a matter of working out the API
interface. Or so it seems. The inner workings of GitHub are still a bit
mysterious to me and and the API docs didn't do anything to clarify it for
me. But it seems like something that's doable.

On Sat, Oct 20, 2018 at 1:47 PM Robert ListMail via 4D_Tech <
4d_tech@lists.4d.com> wrote:

> Kirk, I think any mechanism that can export 4D code as text (plain text,
> JSON, XML, etc) can be used via GitHub to at least manage method changes.
> So, with the new v17r3 we have a native way to share the entire structure
> which will allow us to use version control. However, the limitations seem
> to be that we can not pull a version from a Git repository and integrate
> that back into 4D. I assume that’s coming to a 4D version near you, but as
> I understand it, we don’t have that ability just yet. It’s a one way street
> although a very welcome one.
>
> FWIW,
>
> Robert
>
> > On Oct 19, 2018, at 6:28 PM, Kirk Brooks via 4D_Tech <
> 4d_tech@lists.4d.com> wrote:
> >
> > Did I just hear you say something about uploading direct from 4D into
> > GitHub... 
>
> **
> 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
> **



-- 
Kirk Brooks
San Francisco, CA
===

*We go vote - they go home*
**
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
**

Re: Mac OS 10.14 Mojave and 4D 15

2018-10-20 Thread Kirk Brooks via 4D_Tech
Milan,
I really haven't good luck attempting to use VMWare and am not particularly
moved to buy Parallels when I had all the parts laying around to come up
with a perfectly good solution. If I were making a habit of needing that
older system I might take a look at it but this works for what I need.

On Fri, Oct 19, 2018 at 11:25 PM Milan Adamov via 4D_Tech <
4d_tech@lists.4d.com> wrote:

>
>
> > On Oct 20, 2018, at 01:16, Kirk Brooks via 4D_Tech <4d_tech@lists.4d.com>
> wrote:
> >
> > On the other hand I spent a couple of hours setting up an external drive
> as
> > a boot drive (with Mavericks!) so I can boot an old laptop into that for
> > working with a v11 db. Just a thought.
>
> Why not virtualizing it if you have Parallels or VMWare Fusion? It is not
> breaking Apple license regarding virtualization since Lion, you can install
> both client and server in virtual machine.
>
> Milan
>
>
> **
> 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
> **



-- 
Kirk Brooks
San Francisco, CA
===

*We go vote - they go home*
**
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
**

Re: Help->v11 to v17 Upgrade or New?

2018-10-20 Thread Robert ListMail via 4D_Tech
Kirk, I think any mechanism that can export 4D code as text (plain text, JSON, 
XML, etc) can be used via GitHub to at least manage method changes. So, with 
the new v17r3 we have a native way to share the entire structure which will 
allow us to use version control. However, the limitations seem to be that we 
can not pull a version from a Git repository and integrate that back into 4D. I 
assume that’s coming to a 4D version near you, but as I understand it, we don’t 
have that ability just yet. It’s a one way street although a very welcome one.

FWIW,

Robert

> On Oct 19, 2018, at 6:28 PM, Kirk Brooks via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> Did I just hear you say something about uploading direct from 4D into
> GitHub... 

**
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
**

Re: [off] Windows installer recommendation

2018-10-20 Thread Jeremy Roussak via 4D_Tech
Thanks, Pat - that looks as if it will be the bill perfectly.

Jeremy

> On 20 Oct 2018, at 13:31, Pat Bensky via 4D_Tech <4d_tech@lists.4d.com> wrote:
> 
> Inno Setup. Been using it for years. Works great and very configurable. And
> free :)
> 
> 
> On Sat, 20 Oct 2018 at 13:23, Jeremy Roussak via 4D_Tech <
> 4d_tech@lists.4d.com> wrote:
> 
>> I have been inveigled into making a Windows version of a Mac 4D
>> application. I have no experience of Windows programming and very little of
>> using it, but 4D seems to handle pretty much everything to make a working
>> Windows application. I do need an installer, though: the people who will
>> use it are likely to have even less knowledge of Windows than I do (and
>> that’s setting the bar pretty low).
>> 
>> Is there an easy-to-use and preferably free program that I can use to
>> build a simple installer? All it will need to do is to copy the application
>> to wherever it is on Windows that applications live and create a shortcut
>> on the desktop.
>> 
>> Any recommendations will be gratefully received.
**
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
**

Re: Shared Object - NOT!

2018-10-20 Thread Christian Sakowski via 4D_Tech
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
**

Re: Shared Object - NOT!

2018-10-20 Thread Pat Bensky via 4D_Tech
That's how the example in the docs is.
I've tried it with a process variable - same problem.

Pat

On Sat, 20 Oct 2018 at 15:52, Paul Lovejoy via 4D_Tech <4d_tech@lists.4d.com>
wrote:

> How could it be shared between processes with a name starting with $?
>
>
>
> Paul
>
> > On 20 Oct 2018, at 15:50, Pat Bensky via 4D_Tech <4d_tech@lists.4d.com>
> wrote:
> >
> > 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
> > **
> **
> 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
> **



-- 
*
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
**

Re: Shared Object - NOT!

2018-10-20 Thread Paul Lovejoy via 4D_Tech
How could it be shared between processes with a name starting with $?



Paul 

> On 20 Oct 2018, at 15:50, Pat Bensky via 4D_Tech <4d_tech@lists.4d.com> wrote:
> 
> 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
> **
**
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
**

Shared Object - NOT!

2018-10-20 Thread Pat Bensky via 4D_Tech
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
**

Re: [off] Windows installer recommendation

2018-10-20 Thread Pat Bensky via 4D_Tech
Inno Setup. Been using it for years. Works great and very configurable. And
free :)


On Sat, 20 Oct 2018 at 13:23, Jeremy Roussak via 4D_Tech <
4d_tech@lists.4d.com> wrote:

> I have been inveigled into making a Windows version of a Mac 4D
> application. I have no experience of Windows programming and very little of
> using it, but 4D seems to handle pretty much everything to make a working
> Windows application. I do need an installer, though: the people who will
> use it are likely to have even less knowledge of Windows than I do (and
> that’s setting the bar pretty low).
>
> Is there an easy-to-use and preferably free program that I can use to
> build a simple installer? All it will need to do is to copy the application
> to wherever it is on Windows that applications live and create a shortcut
> on the desktop.
>
> Any recommendations will be gratefully received.
>
> Jeremy
> **
> 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
> **



-- 
*
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
**

[off] Windows installer recommendation

2018-10-20 Thread Jeremy Roussak via 4D_Tech
I have been inveigled into making a Windows version of a Mac 4D application. I 
have no experience of Windows programming and very little of using it, but 4D 
seems to handle pretty much everything to make a working Windows application. I 
do need an installer, though: the people who will use it are likely to have 
even less knowledge of Windows than I do (and that’s setting the bar pretty 
low).

Is there an easy-to-use and preferably free program that I can use to build a 
simple installer? All it will need to do is to copy the application to wherever 
it is on Windows that applications live and create a shortcut on the desktop.

Any recommendations will be gratefully received.

Jeremy
**
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
**

Re: Help->v11 to v17 Upgrade or New?

2018-10-20 Thread Patrick Emanuel via 4D_Tech
Hi Kirk,


4D Tech mailing list wrote
> Did I just hear you say something about uploading direct from 4D into
> GitHub... 

It is not what I understood. He used GitHub to manage his version. But, if
you're right, I'm also very interested by this ;-)



-
Patrick EMANUEL

Administrator
www.association-qualisoft.eu 
(Soft1002, Simply Asso & QS_Toolbox)
--
Sent from: http://4d.1045681.n5.nabble.com/4D-Tech-f1376241.html
**
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
**

Re: Elementary question

2018-10-20 Thread Jeremy Roussak via 4D_Tech
Andrew,

Thanks. As I’ve written, I solved (or worked round) the problem by renaming the 
shortcut files to match the names of the destinations, but a hard link would 
certainly seem to be an alternative. 

Jeremy

> On 16 Oct 2018, at 00:18, Andrew Hickey via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> I think the command you are looking for is the MKLINK command, it does
> require special permissions for some uses, but for components and plugins
> you can use the /J switch to symbolically link the folders.
> 
> 


**
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
**

Re: Application Metrics

2018-10-20 Thread Robert ListMail via 4D_Tech
Jody, how did your deployed app phone home?

Thanks,

Robert

Sent from my iPhone

> On Jul 4, 2018, at 8:38 AM, Jody Bevan via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> This information with the doctor information removed was sent to our central 
> server to accumulate.

**
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
**

Re: Mac OS 10.14 Mojave and 4D 15

2018-10-20 Thread Milan Adamov via 4D_Tech


> On Oct 20, 2018, at 01:16, Kirk Brooks via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> On the other hand I spent a couple of hours setting up an external drive as
> a boot drive (with Mavericks!) so I can boot an old laptop into that for
> working with a v11 db. Just a thought.

Why not virtualizing it if you have Parallels or VMWare Fusion? It is not 
breaking Apple license regarding virtualization since Lion, you can install 
both client and server in virtual machine.

Milan


**
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
**