General information
Category:
ActiveX controls in VFP
>>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?
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only