>>>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)
? PEMSTATUS(oCA.Class,"Flags",1)
? PEMSTATUS(oCA,"Flags",1)
DEFINE CLASS caclass as CursorAdapter
ENDDEFINE