Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
I can't use Collection with case insensitive serach of k
Message
 
À
25/06/2004 04:49:30
Emanuele Bonin
EB Soluzioni Informatiche
Tezze S/B, Italie
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00917124
Message ID:
00917144
Vues:
9
Put NODEFAULT in the begggining of the Item()
FUNCTION ITEM(eIndex)

    NODEFAULT

    IF VARTYPE(eIndex) = 'C'
        LOCAL eIndex
        eIndex = ASCAN(THIS.OBJECTS, eIndex, 1, -1, 1, 15) && ASCAN with case Insensitive
        IF !EMPTY(eIndex)
            RETURN THIS.OBJECTS[eIndex, 2]
        ELSE
            RETURN DODEFAULT(eIndex)
        ENDIF
    ELSE
        RETURN THIS.OBJECTS[eIndex, 2]
    ENDIF
RETURN
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform