Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
MSFlexGrid, Help please.
Message
From
23/04/1999 13:18:42
 
 
To
23/04/1999 12:33:19
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00211485
Message ID:
00211602
Views:
55
>>>Try verifying if oPicture is a valid object after LoadPicture
>>>
>>>oPicture = LoadPicture(...)
>>>If VarType(oPicture)="O" And !IsNull(oPicture)
>>> ....
>>>Else
>>> Wait Wind "oPicture isn't an object - LoadPicture failed"
>>>EndIf
>>
>>You might want to verify that the imagelist control is being instantiated before the the flexgrid control.
>
>
>Hello Joseph
>MSFlexGrid
>Does not require ImageList. But if it to use I receive a similar error
>THISFORM.oleFlex1.object.CellPicture= THISFORM.oleImageList.ListImages(1).Picture
>"Member not found"


I haven't used the flexgrid control, however, I've received similar "Member not found" errors using ActiveX toolbar and listview controls.

What objects method code are you using to executed the above code. I've found that if I change the value of an activeX controls property from another objects method code, especially another ActiveX control, strange things can happen.

Try putting your code in the flexgrid init code if it's not already their. Better yet, subclass the control and create a method to do load the images. Also, try releasing any object variables you create right after your done with them.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform