HP Forums

Full Version: [SOLVED] Newest fw INPUT syntax?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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.
(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.
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:
http://www.hpmuseum.org/forum/thread-536...l#pid48133
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 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?

If none of the answers given seem to help you, please post some snippets so we can see and help more.
Your example works, thank you very much, Dale.
Thank you Tim for your advice about LNAME command in Home. I was almost sure I saw it somewhere in the past, but I didn't remember single quotes.

Both my questions are solved now.
Reference URL's