Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Porting VB samples to VFP
Message
De
14/01/2002 21:24:30
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Divers
Thread ID:
00604153
Message ID:
00604668
Vues:
24
It fails before and my problem related to the property access.

VB
XMLTreeX1.Columns("Subject").HeaderItalic = True
VFP
XMLTreeX1.Columns("Subject").HeaderItalic = .T.

It is works because "Subject" index is collection related and property without index.

But

VB
itemsObj.CaptionCell(h, "Subject") = "XMLTree/X This is a bit of text that should break the line "

VFP
itemsObj.CaptionCell(h, "Subject") = "XMLTree/X This is a bit of text that should break the line "

It fails in VFP because the property is indexed other collection. Strictly speaking, control creators should provide itemsObj.setCaptionCell(h, "Subject") method , but they didn't and which makes this control suitable only in VB . I can access itemsObj.CaptionCell(h, "Subject") in debugger which type "C" and empty "" , but I can't set a value directly.
Can anyone confirm that I am right in my assumption that such controls are not usable in VFP.


>are you sure it will accept 0 as a subscript, in VB you can force it to ( at least with arrays you can )
>
>Regards
>
>Pete Kane
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform