e5tx@vax5.cit.cornell.edu (06/06/91)
I have a question about programming in 4th Dimension that I hope someon can
help me.
I have created a "Choice Input" layout with a Choice field of choices 0, 1, and
2. If I input 0, I will be switched to "Layout0". If I input 1, I will be
switched to "Layout1". If I input 2, I will be switched to "Layout2". In
Layout
0, 1, and 2, there is a field also called Choice, where the choice (0,1, or 2)
that I have made in "Choice Input" layout will be displayed. In other word, I
don't want to input the choice again; I want the program to remeber my choice
and display it.
My solution is the following:
I write a script in the OK button in Choice Input layout.
The script is
remember:=Choice
case of
:(remember=0)
input layout ("Layout0")
:(remember=1)
input layout ("Layout1")
:(remember=2)
input layout ("Layout2")
end case
Then I write a script in the Choice field in Layout 0, 1, and 2 to display the
choice that I have inputed in "Choice Input" layout.
Choice:=remember
Everything seems to work. The Choice field in Layout 0, 1, and 2 all displays
the choice that I have inputed in "Choice Input" layout. So I decide to
display
all the choices that I have inputed in the Choice field in my "Output List"
layout (with layout choice #1). But all I get is the last choice that I have
inputed, i.e. all the choices are displayed with ONLY one of three choices 0,
1,
or 2. I think the problem is becasue I use the same script for the Choice
field
in "Output List" layout, i.e Choice:=remember and remember only stores the last
choice that I have inputed. Can someone tell me what should I write for the
script in the Choice field of my "Output List" layout? Or do I have to use a
totally different approach?
Any suggestion would be much appreciated.
Tim
e5tx@cornella.cit.cornell.edu
P.S. Please e-mail me any suggestion, or e-mail me the message number that you
post as your reply. Thanks.