Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Can't set a property
Message
De
11/07/2000 09:31:43
Marco Beuk
Innovero Software Solutions
The Hague, Pays-Bas
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Divers
Thread ID:
00387702
Message ID:
00390695
Vues:
12
>>>>I'm using an ActiveX grid-control in wich i want to set the width of a cell. In the help of the control the VB syntaxis of setting the ColWidth property is: control.ColWidth( nIndex ) = nValue.
>>>>VFP can't do this way of setting a property.
>>>>The C++ syntax for this property uses the Set and Get methods.
>>>>
>>>>Does anyone know this problem and/or is there a workaround?
>>>>
>>>>Thanks.
>>>
>>>Are you getting errors when you try to set the property? VFP should be able to set the properties just like VB in this case. The only difference may be that you have to reference the form when setting it.
>>>
>>>THISFORM.GridCOntrol.ColWidth(nIndex) = nValue
>>
>>
>>The problem was that nIndex could be negative ( specifying the whole grid or the columnheaders ). But for Fox this is an pure array-property. So you can't use negative index values.
>>How this is done in VB i don't know, you?
>
>Don't know.
>
>Have you seen the implementation in VB? Are you sure a negative value is supposed to be used? If so, I can't help with it.
>
>What is the ActiveX control? And the other question, does the vendor support it under VFP? Some vendors say their control works but they have never tested it.

The ActiveX is FarPoint Spread 3.0. They don't say their control works with VFP, so i don't think they have tested it with VFP.
I'm sure about the negative value.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform