HP Forums
Error HVars - Printable Version

+- HP Forums (https://www.hpmuseum.org/forum)
+-- Forum: HP Calculators (and very old HP Computers) (/forum-3.html)
+--- Forum: HP Prime (/forum-5.html)
+--- Thread: Error HVars (/thread-9959.html)



Error HVars - Tyann - 01-18-2018 05:14 AM

Bonjour
Suite à un bug dans un programme, je me suis aperçu que si vous appelez une variable inexistante avec HVars :
Vous obtenez un message : Erreur donnés stat insuff.

Hello
Following a bug in a program, I realized that if you call a non-existent variable with HVars:
You get a message: Error insufficient statistics data.


RE: Error HVars - Giancarlo - 01-18-2018 03:22 PM

Hello Tyann,
Does it works to trap the error with an IFERR test?

Just guessing a solution

Giancarlo


RE: Error HVars - Tim Wessman - 01-18-2018 05:05 PM

Thank you. It was definitely returning the wrong error here - or at least the message was later changed to be more specific with stats and this case was missed being changed to something else.


RE: Error HVars - Tyann - 01-18-2018 07:19 PM

(01-18-2018 03:22 PM)Giancarlo Wrote:  Hello Tyann,
Does it works to trap the error with an IFERR test?

Just guessing a solution

Giancarlo

Bonjour
Oui, on peut aussi utiliser :
IF NOT POS(HVars,"nomvar") THEN


Hello
Yes, we can also use:
IF NOT POS (HVars, "nomvar") THEN