Re: copy objects

2015-04-15 Thread AndyHC
No, the Life of Pi - quite short in the example g. On 15/04/2015 17:19, Stephen Russell wrote: On Wed, Apr 15, 2015 at 5:56 AM, AndyHC jarnd...@gmail.com wrote: Are taking a slice of pie here? _screen.AddProperty('count') ?_screen.count.F. _screen.count=3.1415926 ?_screen.count

Re: copy objects

2015-04-15 Thread Stephen Russell
On Wed, Apr 15, 2015 at 5:56 AM, AndyHC jarnd...@gmail.com wrote: Are taking a slice of pie here? _screen.AddProperty('count') ?_screen.count.F. _screen.count=3.1415926 ?_screen.count3.1415926 _screen.RemoveObject('count') Error (COUNT not found)

Re: copy objects

2015-04-15 Thread Thierry Nivelet
_screen is a form cousin, or sub-class Thierry Nivelet http://foxincloud.com/ Give your VFP app a second life in the cloud Le 15 avr. 2015 à 06:52, AndyHC jarnd...@gmail.com a écrit : One minor downside to using _Screen is that there doesn't seem to be any way to un_AddProperty.

Re: copy objects

2015-04-15 Thread AndyHC
Well spotted! .removeobject() doesn't help - but: _screen.AddProperty('count') ?_screen.count.F. _screen.count=3.1415926 ?_screen.count3.1415926 _screen.RemoveObject('count') Error (COUNT not found) REMOVEPROPERTY(_screen,'count') ?_screen.count Property COUNT is not found but

Re: copy objects

2015-04-14 Thread Laurie Alvey
To: profox Subject: copy objects I need to create an object in a form with private data session from a cursor like so: select mycursor go 1 scatter name oCur then I want to place this object on the screen so it can be seen by other forms with private data sessions. The idea is that any

copy objects

2015-04-14 Thread Rafael Copquin
I need to create an object in a form with private data session from a cursor like so: select mycursor go 1 scatter name oCur then I want to place this object on the screen so it can be seen by other forms with private data sessions. The idea is that any of the other forms can get the

RE: copy objects

2015-04-14 Thread Dave Crozier
) * endfunc * enddefine -Original Message- From: ProFox [mailto:profox-boun...@leafe.com] On Behalf Of Rafael Copquin Sent: 14 April 2015 12:03 To: profox Subject: copy objects I need to create an object in a form with private data session from a cursor like so: select mycursor go 1

Re: copy objects

2015-04-14 Thread AndyHC
One minor downside to using _Screen is that there doesn't seem to be any way to un_AddProperty. ___ Post Messages to: ProFox@leafe.com Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox OT-free version of this list:

Re: copy objects

2015-04-14 Thread Jean MAURICE
There is NO un_Addproperty but you can find a function named REMOVEPROPERTY() ;-) There is also a method named .removeobject() The Foxil ___ Post Messages to: ProFox@leafe.com Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox

Re: copy objects

2015-04-14 Thread Rafael Copquin
* enddefine -Original Message- From: ProFox [mailto:profox-boun...@leafe.com] On Behalf Of Rafael Copquin Sent: 14 April 2015 12:03 To: profox Subject: copy objects I need to create an object in a form with private data session from a cursor like so: select mycursor go 1 scatter name oCur

Re: copy objects

2015-04-14 Thread Jean MAURICE
Hi Rafael, you must care of one thing : when you write oClient = _screen.oClient, you are NOT copying one object to the other. You are only duplicating its adress. So if you modify a poperty of oClient, the modification will appear in _screen.OClient The Foxil

Re: copy objects

2015-04-14 Thread Rafael Copquin
Salut Jean I did not know that, but now I shall keep in mind Merci beaucoup Rafael El 14/04/2015 a las 16:09, Jean MAURICE escribió: Hi Rafael, you must care of one thing : when you write oClient = _screen.oClient, you are NOT copying one object to the other. You are only duplicating its