Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Porting VB samples to VFP
Message
From
14/01/2002 21:24:30
 
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00604153
Message ID:
00604668
Views:
22
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
Previous
Reply
Map
View

Click here to load this message in the networking platform