Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
AddProperty Method Error
Message
From
22/10/1998 11:11:43
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00149402
Message ID:
00149432
Views:
27
>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.

I belive the problem is that you can't addprop to an object in it's init, since the object doesn't technically exist yet.

Try it in the init of the PageFrame... since all object contained are created prior to the container...

for x = 1 to PageCount
This.Page&x..AddProp('TabStop',.f.)
nextx

Doesn't setting the page frames TabStop to false do what you want?

It also coujld be because TabStop is a keyword... It is like doing

function next

BOb
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform