Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
HELP Omission or BUG?
Message
De
15/03/2006 07:30:41
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01104446
Message ID:
01104467
Vues:
12
>>>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform