Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
BUG? - PEMSTATUS errors when '4' and prop. not exists
Message
From
11/06/2003 08:43:28
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00798596
Message ID:
00798849
Views:
29
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.

>Hi Tracy,
>
>I don't get any errors in VFP7 or VFP8 with following two lines.
_screen.AddProperty("PrintScr")
>? PEMSTATUS(_Screen,'Printscr',4)     && Returns .T.
Do you get different result?
>
>>Let's say it's been added using addproperty() to the _screen. Checking with '5' instead of '4' will return .t. Now if I check using '4' to see if it is user-defined, I still receive an error, not a false. How do you see if it is user defined without the error occuring?
>>
.·*´¨)
.·`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"
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform