Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
BUG: on _VFP Intellisense don't show the UDP
Message
From
11/08/2005 07:48:14
 
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9
Miscellaneous
Thread ID:
01040137
Message ID:
01040150
Views:
15
>The _VFP is a VFP COM interface. It's a bug that you can add a property to it.
>

I don't agree.
Every object has Application, and therefore it is a lot of profit and sensible to be able to add properties to the application object.
Besides it is difficult to think to a bug or a side effect that supports,
(almost!) all the commands without collapsing or errors.
ADDPROPERTY(_VFP,"SomeProperty",4)
odelegate=CREATEOBJECT("_VFP_Delegate")

BINDEVENT(_VFP,"SomeProperty",odelegate,"callMe",1)
_VFP.SomeProperty = 5

DEFINE CLASS _VFP_Delegate AS Custom
	PROCEDURE callme
		? "bind",this.Application.SomeProperty
ENDDEFINE
Previous
Reply
Map
View

Click here to load this message in the networking platform