Peter R
Yes.
In the method,
var
ui uiobject
f form
endvar
f.attach() ; attach to the form that is calling this method
ui.attach(f.objectname)
ui.color=blue
>From memory, but it should be very close if not exact.
--
--
Paradox Support http://www.thedbcommunity.com/support/
Tony McGuire
_____________
It's the attaching to the form that I missed. Thank you, husband of the
Pdox Goddess.
Peter R
"Tony McGuire" <cng.paradoxcommunity@com> wrote in message
news:412353fe$1_1@cnews...
My question is how come Pdox doesn't want the form's name specified in
the parenthesis?
Peter R
Peter,
Form attach will only work if it is given either a literal string or
string variable that contains the Title of the form to which the form
variable is is to be attached. The string must contain exactly the same
characters as are displayed when the form is displayed during runtime.
Tom Nelson
: My question is how come Pdox doesn't want the form's name specified in
: the parenthesis?
The f.attach() wants the TITLE of the form as it appears on the form's
(window's) title bar.
NOT the name of the file on disk.
f.attach() automagically attaches to the form executing/calling the method.
Otherwise, you can 'name' any form you wish to attach to by the form's
title.
f.attach()
f.attach("Data Entry")
etc.
Oh, and with attach(), the FORM MUST ALREADY BE OPEN since you are trying to
'attach' to a form - not open it.
I finally got into using libraries in a very very complex module of my
application. The problem I had was that if I called a library method
from
a button the containership references were different than if I called
it from
a change value event on a field. So I made it work, but there were
many
container.container.container references.
I never thought to just attach a form variable. I would have never
figured out the magic of simply f.attach(). So I am merrily changing
the code to simplify
things. It's so complicated that I have trouble figuring out how it
works.
This module constructs the box specs, calcs the costs of materials,
labor, overhead , etc etc and then comes up with prices for each order
quantity.
The customers love it , but have no idea what makes it tick.
Thanks,
Steve White
Steve White Consulting