>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