Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ImageList Control - KeyExists() procedure
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Divers
Thread ID:
00662237
Message ID:
00662681
Vues:
16
>>>Anyone know quick way to determine if a key exists in an ImageList control?
>>>
>>>Tried to do the following but getting the error message "OLE IDispatch exception code 0 from ListImages: Element not found.."
>>>
>>>loImage = toImageList.ListImages(lcIconKey)
>>>
>>
>>You can either use local error handler or write wrapper class to intercept that 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'
>
>
Cool.
--sb--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform