? AddProperty(_VFP, 'test')
Thierry Nivelet FoxInCloud Give your VFP app a second life in the cloud http://foxincloud.com/
Le 05/12/2017 à 09:34, Paul Newton a écrit :
Eric
I think you must be mistaken ... I tried that with _VFP.AddProperty("Test",2) and got an OLE error code 0x80020006 Unknown name
Paul
-----Original Message----- From: ProfoxTech [mailto:profoxtech-bounces@leafe.com] On Behalf Of Eric Selje Sent: 04 December 2017 16:51 To: profoxtech@leafe.com Subject: Re: Adding an object to the _VFP.Objects collection
You can _VFP.AddProperty, and the property can be an object. Will that work?
I use this strategy when implementing FoxTypes https://github.com/eselje/FoxTypes/, which keeps the object around even if CLEAR ALL is issued. I don't use _Screen mostly because that doesn't make logical sense to me.
Eric
On Mon, Dec 4, 2017 at 10:02 AM, Jürgen Wondzinski juergen@wondzinski.de wrote:
_VFP is the object-reference to his majesty himself. You don't dare to mess with him! :)
Or, more technically: _VFP references the core engine, _screen references the visual existance. You can add objects to _screen, and these reflect then as changes in _VFP. The object collection in _VFP is dynamically rebuilt everytime a change happen, thus it wouldn't make any sense to add something at that low level.
wOOdy
-----Ursprüngliche Nachricht----- Von: ProFox [mailto:profox-bounces@leafe.com] Im Auftrag von Paul Newton Gesendet: Montag, 4. Dezember 2017 16:45 An: profoxtech@leafe.com Betreff: Adding an object to the _VFP.Objects collection
Hi all
I am trying to add a custom object to the _VFP objects collection but without success. Any ideas?
Thanks
Paul Newton
[excessive quoting removed by server]