Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Compare Object
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00190373
Message ID:
00190402
Vues:
12
>In VFP 5.0 or earlier you need to use the CompObj() function whihc isn;t
>exactly what you are asking foir. CompObj comapres two objects to see if they
>have the same set of properties, methods and if the values of the properties
>are the same. It is possible to have CompObj tell you two objects are the same
>when they aren't.

You can fake it out, though...
IF COMPOBJ(loA, loB)
    IF PEMSTATUS(loA, "Name", 5)
        lcName = loA.Name
        loA.Name = "A" + lcName
        IF loB.Name = "A" + lcName
            MESSAGEBOX("Both variables reference the same object")
        ELSE
            MESSAGEBOX("The variables reference different identical objects")
        ENDif
    ELSE
        MESSAGEBOX("The objects are identical, but test for multiple objects failed")
    ENDif
ELSE
    MESSAGEBOX("The objects are different")
ENDif
My blog
My consulting page
My home page

Member of the Trim Your Auto-Quote Campaign!
What's another word for thesaurus?
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform