Post Reply 
PPL INPUT function
04-12-2014, 05:51 AM (This post was last modified: 04-12-2014 05:52 AM by Tim Wessman.)
Post: #6
RE: PPL INPUT function
I do see some misbehavior here only on the latest public one. What I see is that the initial value displayed if accepted without entering a new value is defaulting to 0. So if I enter values for each number, it works fine. If I just press ENTER and move on to accept the default then I see something like a 0/0 error in my result. There isn't any sort of corruption though nor any sort of crash. Does that match what you are seeing?

Any reason why you aren't getting all 3 values at once? Is it specifically for the auto-close on enter or were you not aware of the ability to request multiple at a time?

INPUT({E,I,L})

Now to work around this for the moment, you can put your E I L into a program variable. This only appears to happen with the global reals on the last public one. This works correctly for me here.

Code:
e0,i0,l0;
EXPORT BUCKLE()
BEGIN
K:=1;
INPUT({e0,i0,l0},"Buckle EQ",{"E:","I:","L:"});
RETURN e0*i0*pi^2/(K*l0)^2;
END;

Note how those variables are no longer the global E I L vars. For the short term this will allow it to work for you without issues I think. You can also put units on your input too which wouldn't be possible with the global reals.

TW

Although I work for HP, the views and opinions I post here are my own.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
PPL INPUT function - orcinus - 04-04-2014, 01:35 AM
RE: PPL INPUT function - Karl-Ludwig Butte - 04-04-2014, 06:33 AM
RE: PPL INPUT function - DrD - 04-04-2014, 09:39 AM
RE: PPL INPUT function - orcinus - 04-04-2014, 01:48 PM
RE: PPL INPUT function - jlastofka - 04-12-2014, 04:48 AM
RE: PPL INPUT function - Tim Wessman - 04-12-2014 05:51 AM
RE: PPL INPUT function - jlastofka - 04-12-2014, 01:23 PM
RE: PPL INPUT function - Han - 04-13-2014, 02:17 AM
RE: PPL INPUT function - jlastofka - 04-13-2014, 03:04 AM
RE: PPL INPUT function - Han - 04-13-2014, 03:41 AM
RE: PPL INPUT function - jlastofka - 04-13-2014, 04:51 AM
RE: PPL INPUT function - Joe Horn - 04-13-2014, 06:37 AM



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