12-19-2016, 12:18 AM (This post was last modified: 12-19-2016 06:05 PM by chromos.)
Post: #1
 chromos Member Posts: 184 Joined: Jun 2015
1) Please, do you anybody know which is new syntax for INPUT command? I need store expressions, something like A+B or G-K/L etc. It worked in previous fw, but I am unable understand current syntax - I tried "everything", but everytime I get orange exclamation mark and programm is still on INPUT screen.

2) Is there alternative to lname command in Home?

Thank you very much.

Geocaching Coords Solver, Number of triangles Puzzle
12-19-2016, 02:24 AM
Post: #2
 Han Senior Member Posts: 1,817 Joined: Dec 2013
(12-19-2016 12:18 AM)chromos Wrote:  1) Please, do you anybody know which is new syntax for INPUT command? I need store expressions, something like A+B or G-K/L etc. It worked in previous fw, but I am unable understand current syntax - I tried "everything", but everytime I get orange exclamation mark and programm is still on INPUT screen.

2) Is there alternative to lname command in Home?

Thank you very much.

It helps to share a snippet of your code so we can help debug.

Graph 3D | QPI | SolveSys
12-19-2016, 02:58 AM
Post: #3
 chromos Member Posts: 184 Joined: Jun 2015
OK, this worked until fw update to latest release:

PHP Code:
INPUT(Temp,[2],"Expression","Variables must be in UPPERCASE! (e.g. A+B-4)");

I tried many variations of [2] - with different parentheses, even without them, at different places - with no success.

That line code is line # 293 from Geo Coords Solver:

Geocaching Coords Solver, Number of triangles Puzzle
12-19-2016, 11:18 AM (This post was last modified: 12-19-2016 11:25 AM by DrD.)
Post: #4
 DrD Senior Member Posts: 1,124 Joined: Feb 2014
Did you create local variable Temp, first?

Would this adaptation be of any use to you?

Code:
 EXPORT test() BEGIN   LOCAL Temp; //  INPUT(Temp,[2],"Expression","Variables must be in UPPERCASE! (e.g. A+B-4)");    INPUT(          { {Temp, [2], {25,74,3} } },           "Resolve Expression",          "Expression",          "Variables must be in UPPERCASE! (e.g. A+B-4)",          "",          ""        );   RETURN Temp; END;

-Dale-
12-19-2016, 04:56 PM
Post: #5
 Tim Wessman Senior Member Posts: 2,231 Joined: Dec 2013
(12-19-2016 12:18 AM)chromos Wrote:  1) Please, do you anybody know which is new syntax for INPUT command? I need store expressions, something like A+B or G-K/L etc. It worked in previous fw, but I am unable understand current syntax - I tried "everything", but everytime I get orange exclamation mark and programm is still on INPUT screen.

It seems to work fine for me here (provided Temp has been defined as pointed out).

Quote:2) Is there alternative to lname command in Home?

LNAME is also a home command. Takes an expression 'X^2+Y' for example, and returns { X, Y }. Does that do what you want?

TW

Although I work for the HP calculator group, the views and opinions I post here are my own.
12-19-2016, 06:00 PM
Post: #6
 chromos Member Posts: 184 Joined: Jun 2015
Your example works, thank you very much, Dale.

Geocaching Coords Solver, Number of triangles Puzzle
12-19-2016, 06:04 PM (This post was last modified: 12-19-2016 06:07 PM by chromos.)
Post: #7
 chromos Member Posts: 184 Joined: Jun 2015