Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
AddProperty Method Error
Message
From
22/10/1998 17:22:13
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00149402
Message ID:
00149587
Views:
19
Hiya Mark ---

It wouldn't work because it's out of scope. If you want to set TabStop to False it has to apply to the all pages in the PageFrame, so the correct code is:
if vartype(This.Parent) = "O"
   This.Parent.AddProperty("TabStop", .f.)
endif
Or am I missing something?




>Using VFP 6. In my efforts to defeat the TabStop on a page of a pageframe, I am attempting to use the addproperty method in the INIT of a page:
>if vartype(This) = "O"
>   This.AddProperty("TabStop", .f.)
>endif
>
>The ever-so-helpful error message I get at runtime is Property "TabStop" does not exist. Duh! That is precisely why I am trying to add it. Ultimately, I do not know if this will work, but I would like some enlightenment as to why this property is not being added.
>
>TIA.
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05
Previous
Reply
Map
View

Click here to load this message in the networking platform