Article View: comp.sys.mac.apps
Article #10666Help needed for 4th Dimension (another)
From: e5tx
Date: Thu, 06 Jun 1991 05:16
Date: Thu, 06 Jun 1991 05:16
52 lines
2444 bytes
2444 bytes
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.
Technical Details
Message-ID:
<1991Jun6.011650.5283@vax5.cit.cornell.edu>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!elroy.jpl.nasa.gov!lll-winken!aunro!alberta!brazeau.ucs.ualberta.ca!unixg.ubc.ca!ubc-cs!uw-beaver!cornell!vax5.cit.cornell.edu!e5txShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!elroy.jpl.nasa.gov!lll-winken!aunro!alberta!brazeau.ucs.ualberta.ca!unixg.ubc.ca!ubc-cs!uw-beaver!cornell!vax5.cit.cornell.edu!e5tx From: e5tx@vax5.cit.cornell.edu Newsgroups: comp.sys.mac.apps Subject: Help needed for 4th Dimension (another) Message-ID: <1991Jun6.011650.5283@vax5.cit.cornell.edu> Date: 6 Jun 91 05:16:49 GMT Distribution: comp Organization: CIT, Cornell University Lines: 52