Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
BUG? - PEMSTATUS errors when '4' and prop. not exists
Message
 
 
À
10/06/2003 16:05:35
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00798596
Message ID:
00798648
Vues:
22
Jim,

I don't think it's a bug. If property doesn't exist it's nether intrinisic nor user defined. You should first check if it's exist and only after that see if it's user defined.

>The following 3 commands:
_screen.AddProperty("PrintScr")    && add the property (no error)
>? PEMSTATUS(_Screen,'Printscr',4)  && returns .T.
>? PEMSTATUS(_Screen,'xPrintscr',4) && gives error re invalid argument
Interestingly the command following run immediately after returns .F.
? PEMSTATUS(_Screen,'xPrintscr',5)
While it may be (don't know) that a property added by AddProperty is not considered to be "user defined", I don't think that using "4" should generate an error.
>
>This occurred in both VFP8 and VFP7SP1. A search of (online) MSKB using "Visual FoxPro 7" and "pemstatus" returned nothing.
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform