Post Reply 
INPUT question
06-02-2014, 10:30 PM (This post was last modified: 06-02-2014 10:31 PM by Mark Hardman.)
Post: #12
RE: INPUT question
(06-02-2014 07:34 PM)Eddie W. Shore Wrote:  
(06-02-2014 05:00 PM)Dougggg Wrote:  I have tried combining types of inputs and get strange results

For Example:

INPUT({{LAT1,[0]},{LAT1D,{"N","S"}}},"LOCATION INPUT",{"LAT 1","DIR"});
returns
LAT1=0 and
LAT1D={"N","S"}

when you press ok
display on the form is as expected Line 1 is LAT1 and Line 2 is a Choose for N or S

do I have syntax error?

Although I cant do much more my editor keeps crashing and is now gone

I get something similar too.

I've had some success getting this to work for a single dropdown in the input form:

Code:
EXPORT MyApp()
BEGIN
LOCAL UOM;
LOCAL UOM2=0;
LOCAL UOMLIST:={"KNOTS","MPH","KPS"};
INPUT({{UOM,[1],{0,0,0}},
       {UOM2,UOMLIST,{15,85,2}}},
       "Enter Units",
       {"","UOM"});
PRINT();
PRINT(UOM);
PRINT(UOM2);
END;

This gives you the following:

   

Depending on the selection, the first variable in the form is assigned the zero-based index of the selected item from the dropdown:

   

I'm not sure how much more useful this is than CHOOSE. Adding any additional variables to the INPUT form causes the Prime to crash.

Mark Hardman

Ceci n'est pas une signature.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
INPUT question - Eddie W. Shore - 05-30-2014, 02:20 AM
RE: INPUT question - Mic - 05-30-2014, 05:24 AM
RE: INPUT question - Eddie W. Shore - 05-30-2014, 12:05 PM
RE: INPUT question - Tim Wessman - 06-02-2014, 02:12 PM
RE: INPUT question - acmeanvil - 05-30-2014, 02:11 PM
RE: INPUT question - Eddie W. Shore - 05-31-2014, 03:22 AM
RE: INPUT question - rprosperi - 05-31-2014, 07:17 PM
RE: INPUT question - Mark Hardman - 06-02-2014, 09:01 PM
RE: INPUT question - Bob Frazee - 05-31-2014, 02:11 AM
RE: INPUT question - Dougggg - 06-02-2014, 05:00 PM
RE: INPUT question - Eddie W. Shore - 06-02-2014, 07:34 PM
RE: INPUT question - Mark Hardman - 06-02-2014 10:30 PM
RE: INPUT question - slawek39 - 07-13-2014, 12:21 PM
RE: INPUT question - Giancarlo - 07-26-2014, 02:06 PM
RE: INPUT question - Giancarlo - 07-26-2014, 02:22 PM
RE: INPUT question - Giancarlo - 07-26-2014, 02:40 PM



User(s) browsing this thread: 1 Guest(s)