Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
HELP Omission or BUG?
Message
From
15/03/2006 07:30:41
 
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01104446
Message ID:
01104467
Views:
11
>>>I was very supprise today when I build my own class based on CursorAdapter. When I use Flags = 0 mourn this property is ReadOnly.
>>>I checked in HELP and :
>>>Specifies flag settings for the CursorAdapter as described by the nFlags parameter in XMLUPDATEGRAM( ) Function. Read/write at design time and run time.
>>>My CA is not XML based, but still help don't say that this is ONLY when you use XML CA. I know that default value is 0, but IF I want to set it why I can't? :-)
>>
>>Into my vcx's ca class I can put 576656757567, regardless to the datasourcetype
>Yes in VCX you could put everithing you want, but try this:
>
>oCA = CREATEOBJECT([CursorAdapter])
>oCA.Flags = 0
>
The property become RO when the class become an object:
oCA= CREATEOBJECT("caclass")
oCA.datasourceType = "XML"

clear
? PEMSTATUS(oCA.BaseClass,"Flags",1)	&& .F.
? PEMSTATUS(oCA.Class,"Flags",1)        && .F.
? PEMSTATUS(oCA,"Flags",1)              && .T.


DEFINE CLASS caclass as CursorAdapter 

ENDDEFINE
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform