Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
BUG? - PEMSTATUS errors when '4' and prop. not exists
Message
De
11/06/2003 08:59:47
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00798596
Message ID:
00798859
Vues:
33
Then I'm misunderstanding the help:


4 User-defined. A logical true (.T.) is returned if the property, event, or method is a user-defined property, event, or method; otherwise a logical false (.F.) is returned.

5 Defined property, event, method, or object. A logical true (.T.) is returned if the property, event, method, or object exists for oObjectName or cClassName, otherwise a logical false (.F.) is returned.

I understood the .f. that is returned to reflect that the user-defined property does not exist. Now, reading it again, I see that I have to use 5 to see if it exists at all and then use 4 to see only if it is a user-defined property, event, or method or not (and it has to already exist to use 4 so 5 must return .t. first...

All in the interpretation of the help! Obviously I was wrong in my understanding. Thanks Sergey!

Tracy

>I don't understand why you compare PEMSTATUS(..,5) and PEMSTATUS(..,4). The PEMSTATUS(..,5) is specificly designed to check if property exists or not and it's reflected in the help file. The PEMSTATUS(..,4) allows to check intrinisic or user defined attribute of existing properies. There's no mention in the help that it can be used for non-existing property.
>
>>It's when the property doesn't exist that it errors. It does not return .f., it produces an error, unlike PEMSTATUS(_screen,'Printscr',5) which returns false if the property does NOT exist. I believe it is a bug because the help file states that both should return .f. if the property does not exist. You cannot use 4 to see if the property exists or not because of the error.
>>
.·*´¨)
.·`TCH
(..·*

010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform