Quote:
When you name an object you need to use the name to call anything
contained in that object from outside the object which you do not have to
do
with noise names. |
That is not what I'm seeing or maybe I don't get it?
Let's say i have a form with a Notebook with 2 pages. On one of the pages I
have a tableframe and in that frame I have a field CustomerNo.
Outside the notebook, on the forms page, I have a button with code like
view(CustomerNo).
The button will display the active customer number.
If I rename the notebook page that contains the tableframe to "FirstPage", I
can still run the code on the button and it will display the correct
customer no.
Quote:
Why do that unless you need a name
to actually call an object or reference it. And since you can usually
reference
a notetab by calling some object in it (MyMRO.container) it just seems
pointless
and problematic to name a notebook or its pages. |
Sometimes I wish to know if the notebook page is active and then I find it
easier to refer to it with something like
if FirstPage.Focus=true
then
....
My main rule is that I rename an object with a #name if I'm going to refer
to it in code.
Anders