Hi Mike,
>>First, instead of ADDOBJECT use NEWOBJECT method. (My colleaque told me, that this method is newer and better, what's your opinion?)
>
>I think your friend is describing the difference between NewObject() and CreateObject()
functions. These two functions create an object and return the reference given the class name, and NewObject (newer) allows you to refrence the class lib too. AddObject() is a
method of a container class that allows you to create an object on that container. So the other functions would create the object, but it wouldn't be on the form.
No, in VFP6 we also have NewObject method, not only function. See Help for details. I used it today instead of AddObject by his advice, because this method doesn't require to SET CLASSLIB TO ...
>
>>Second, in SetupPages don't forget to assign pages captions to the options captions.
>
>I do :-) It's actually in ArrangeTabs() (called by SetupPages()) here:
>
Great! So, it is in my version already, right?
>
loButton.Caption = .Pages[loButton.TabIndex].Caption
If it's not broken, fix it until it is.
My Blog