Re: How can I set a property in an Activex ?
Jucarapato wrote:
>
> I'm a beginner in Euphoria, trying to use my favorite activex control
> (MSFlexGrid).
> I was able to modify the SHEET.EXW example in Eucom and I can see the grid,
> but I dont know how to set a simple property. In VB i use something like
> Grid1.Rows
> = 10. How can this same thing be done in Euphoria? I suppose that the invoke(
> ) can be used, but in my tests everything fails. I'm testing the following
> line
> and some variations of it, but nothing works:
> void = invoke( Grid1, {MSFlexGrid_p_Rows,DISPID_PROPERTYPUT}, {4}, {VT_I4},
> DISPATCH_PROPERTYPUT )
> Can someone help me ? I would like to know, too, how to read the .Rows
> property.
> Thanks in advance.
I've never worked with MSFlexGrid, but that code looks correct. What happens
after you call the code? It might not like the DISPID_PROPERTYPUT. I've seen
some objects that require it, and others that fail if you don't have it.
Do you get an error message (by using com_err_out)?
Matt
|
Not Categorized, Please Help
|
|