Hi Mike,
>>That's great. I've just checked your code more carefully. You use assign method for this property. So, I believe, you can use it for page visibility also. And for the caption. Am I right?
>
>Nope: PageCount is a pageframe property, your talking about properties of a pages itself.
Yes, I realized it after posting. The problem turns to be more complicated, as it seems from the first sight.
Firstly, I'm not sure, that we can visually design page class, and, of course, it is even possible, if we would use our page class on the pageframe, we can not Add/Remove object.
Secondly, as you wrote in your answer to Jim, it would be tough to do it this way.
So, in conclusion, I should admit, that my idea would require too much work. Perhaps, we should sacrifice the perfomance from the form point of view and use methods instead, as you did from the beginning and as Nick advised also. May be we should change the name, but it's not important.
It's a pity.
>
>There's a big VFP7 wish right there: Since we can compile code on the fly now, why not add methods? Makes sense to me.
You meant add method on the fly? Could you please be more specific?
>
>>Another problem, which I found here: suppose, in Run-time we would use AddObject/RemoveObject for pageframe pages. What should we do here?
>
>I think you will be alright since it should fire the assign method. I don't know for sure, have you tried it? I'll get back to you if its otherwise.
>
Nope, just imagine :)
>>>I'm not sure what this means. Analogue? Like Music :-)
>> Did I use the wrong word here? :) Did you have experience with VB?
>
>I don't know what "analogue" means in reference to programming. Thats all :-)
Ok, what would be correct termin here? Similar?
If it's not broken, fix it until it is.
My Blog