Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Compare Object
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00190373
Message ID:
00190402
Views:
11
>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?
Previous
Reply
Map
View

Click here to load this message in the networking platform