Hi all
I am trying to add a custom object to the _VFP objects collection but without success. Any ideas?
Thanks
Paul Newton
Seems impossible, _VFP does not have an .AddObject() method (while _screen has).
Thierry Nivelet FoxinCloud Give your VFP app a new life in the cloud http://foxincloud.com/
Le 4 déc. 2017 à 16:45, Paul Newton Paul.Newton@pegasus.co.uk a écrit :
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]
Thierry
I know but _VFP.Objects is a collection object so I thought I should be able to an item to the collection ...
-----Original Message----- From: ProfoxTech [mailto:profoxtech-bounces@leafe.com] On Behalf Of Thierry Nivelet Sent: 04 December 2017 15:47 To: profoxtech@leafe.com Subject: Re: Adding an object to the _VFP.Objects collection
Seems impossible, _VFP does not have an .AddObject() method (while _screen has).
Thierry Nivelet FoxinCloud Give your VFP app a new life in the cloud http://foxincloud.com/
Le 4 déc. 2017 à 16:45, Paul Newton Paul.Newton@pegasus.co.uk a écrit :
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]
_______________________________________________ Post Messages to: ProFox@leafe.com Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech Searchable Archive: http://leafe.com/archives/search/profox This message: http://leafe.com/archives/byMID/profox/07DDD791-0B76-4593-A742-FEA4597B1A69@... ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious. Report [OT] Abuse: http://leafe.com/reportAbuse/07DDD791-0B76-4593-A742-FEA4597B1A69@foxincloud...
.Objects is always internal, and obscure VFP may use it to manage other collections like .Projects
Thierry Nivelet FoxinCloud Give your VFP app a new life in the cloud http://foxincloud.com/
Le 4 déc. 2017 à 16:50, Paul Newton Paul.Newton@pegasus.co.uk a écrit :
Thierry
I know but _VFP.Objects is a collection object so I thought I should be able to an item to the collection ...
-----Original Message----- From: ProfoxTech [mailto:profoxtech-bounces@leafe.com] On Behalf Of Thierry Nivelet Sent: 04 December 2017 15:47 To: profoxtech@leafe.com Subject: Re: Adding an object to the _VFP.Objects collection
Seems impossible, _VFP does not have an .AddObject() method (while _screen has).
Thierry Nivelet FoxinCloud Give your VFP app a new life in the cloud http://foxincloud.com/
Le 4 déc. 2017 à 16:45, Paul Newton Paul.Newton@pegasus.co.uk a écrit :
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]
_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]
Thank you for the excellent explanation wOOdy
-----Original Message----- From: ProfoxTech [mailto:profoxtech-bounces@leafe.com] On Behalf Of Jürgen Wondzinski Sent: 04 December 2017 16:02 To: profoxtech@leafe.com Subject: AW: Adding an object to the _VFP.Objects collection
_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]
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]
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]
_______________________________________________ Post Messages to: ProFox@leafe.com Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech Searchable Archive: http://leafe.com/archives/search/profox This message: http://leafe.com/archives/byMID/profox/CAAwxvUkx4tOgC7r29g4mqq9cO6=t7_iYO8qD... ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious. Report [OT] Abuse: http://leafe.com/reportAbuse/CAAwxvUkx4tOgC7r29g4mqq9cO6=t7_iYO8qD9VFCNRowLB...
? 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]
Paul, you got it wrong. And you should have noticed it by your own: Intellisense doesn't show a native Addproperty Method inside of _vfp. AddProperty is a regular Function:
ADDPROPERTY(_vfp, "test", 2)
This will work, but as I mentioned before: _VFP a score engine doesn't expect to get messed with, therefor the _VFP intellisense doesn't show that new member, but it stil is accessible.
wOOdy
-----Ursprüngliche Nachricht----- Von: ProFox [mailto:profox-bounces@leafe.com] Im Auftrag von Paul Newton Gesendet: Dienstag, 5. Dezember 2017 09:35 An: profox@leafe.com Betreff: RE: Adding an object to the _VFP.Objects collection
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
Mea culpa ... but it was Eric who wrote:
You can _VFP.AddProperty, and the property can be an object
-----Original Message----- From: ProfoxTech [mailto:profoxtech-bounces@leafe.com] On Behalf Of Jürgen Wondzinski Sent: 05 December 2017 08:48 To: profoxtech@leafe.com Subject: AW: Adding an object to the _VFP.Objects collection
Paul, you got it wrong. And you should have noticed it by your own: Intellisense doesn't show a native Addproperty Method inside of _vfp. AddProperty is a regular Function:
ADDPROPERTY(_vfp, "test", 2)
This will work, but as I mentioned before: _VFP a score engine doesn't expect to get messed with, therefor the _VFP intellisense doesn't show that new member, but it stil is accessible.
wOOdy
-----Ursprüngliche Nachricht----- Von: ProFox [mailto:profox-bounces@leafe.com] Im Auftrag von Paul Newton Gesendet: Dienstag, 5. Dezember 2017 09:35 An: profox@leafe.com Betreff: RE: Adding an object to the _VFP.Objects collection
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
_______________________________________________ Post Messages to: ProFox@leafe.com Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech Searchable Archive: http://leafe.com/archives/search/profox This message: http://leafe.com/archives/byMID/profox/002701d36da5$bc191c30$344b5490$@wondz... ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious. Report [OT] Abuse: http://leafe.com/reportAbuse/002701d36da5$bc191c30$344b5490$@wondzinski.de
Touché ! :)
-----Ursprüngliche Nachricht----- Von: ProFox [mailto:profox-bounces@leafe.com] Im Auftrag von Paul Newton Gesendet: Dienstag, 5. Dezember 2017 10:21 An: profox@leafe.com Betreff: RE: Adding an object to the _VFP.Objects collection
Mea culpa ... but it was Eric who wrote:
You can _VFP.AddProperty, and the property can be an object
Yes, sorry, thanks for correcting that. I do it all the time and yet still don't get the syntax right. ;)
Eric
On Tue, Dec 5, 2017 at 3:36 AM, Jürgen Wondzinski juergen@wondzinski.de wrote:
Touché ! :)
-----Ursprüngliche Nachricht----- Von: ProFox [mailto:profox-bounces@leafe.com] Im Auftrag von Paul Newton Gesendet: Dienstag, 5. Dezember 2017 10:21 An: profox@leafe.com Betreff: RE: Adding an object to the _VFP.Objects collection
Mea culpa ... but it was Eric who wrote:
You can _VFP.AddProperty, and the property can be an object
[excessive quoting removed by server]