Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ImageList Control - KeyExists() procedure
Message
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00662237
Message ID:
00662674
Views:
20
>Try this:
>
>ON ERROR DO ErrHandler && If element not found - process the error
>loImage = toImageList.ListImages(lcIconKey)
>ON ERROR

I want to avoid error trapping...

I figured it out with a little more thought. The old reliable TYPE() function did the trick.
IF NOT TYPE("toImageList.ListImages('"+lcIconKey+"')") = 'O'
Heavy Metal Pedal - click with care
Previous
Reply
Map
View

Click here to load this message in the networking platform