Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
PEMSTATUS() has a bug!!!
Message
 
 
To
13/04/1998 12:59:39
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00091565
Message ID:
00091617
Views:
26
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform