Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
PEMSTATUS() has a bug!!!
Message
 
 
À
13/04/1998 12:59:39
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00091565
Message ID:
00091617
Vues:
27
James,

Labels have a TabIndex, and evidently a Hidden TabStop, in order to support hotkey access to fields. Since the label can't get focus it goes to the next object in the taborder. You might want to either also test the baseclass to make sure it's not label, or put code in your lowest level Label class to ignore the error caused when trying to access that property.

PEMSTATUS() and GETPEM() can be two of the buggiest functions in VFP.

>Does everyone know that PEMSTATUS("label","tabstop",5) returns .T.??
>
>M$ tech support tells me that there is actually a .tabstop property in a label, but the property is not "publicly exposed". What this means, however is that
>
>IF PEMSTATUS(thisform.controls(i),"tabstop",5)
>thisform.controls(i).tabstop = .F.
>ENDIF
>
>will cause an error.
>
>Are there any other PEMSTATUS() anomolies that anyone knows about??
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform