HP Forums
Possible problem with reset values (INPUT CMD) - 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: Possible problem with reset values (INPUT CMD) (/thread-7885.html)



Possible problem with reset values (INPUT CMD) - compsystems - 03-06-2017 12:21 PM

Hello

1: run testInputList ()
2: then press the backspace key [<-], appears in the first field {4}, which is the value of reset_values
3: then press OK, a (!) appears, Why?
4: now if you press [edit], then [ok] and then another [ok] already accept it

PHP Code:
export testInputList()
begin
  local a
bc;
  
local resetVAL_aresetVAL_bresetVAL_c;
  
local initVAL_ainitVAL_binitVAL_c;
  
initVAL_a := {1}; initVAL_b := {2}; initVAL_c := {3};
  
resetVAL_a := {4}; resetVAL_b := {}; resetVAL_c := {};
  
local ObjectType_List :=  6;
  
local ObjectType := ObjectType_List;
  
local title := "Type Allow: List {}";
  
local ok := true;
  
local cancel := false;
  
local keyPressedOnMenu := cancel;
  
keyPressedOnMenu := input
  
(
  {
  { 
a, [ ObjectType ] },
  { 
b, [ ObjectType ] },
  { 
c, [ ObjectType ] }
  },
  
title,
  { 
"label_a:""label_b:","label_c:" },
  { 
"help_a""help_b""help_c" },
  { 
resetVAL_aresetVAL_bresetVAL_c },
  { 
initVAL_ainitVAL_binitVAL_c }
  );
  if 
keyPressedOnMenu == ok then
    
return( { ab} );
  else
    return 
"Done";
  
end;
end



RE: Possible problem with reset values (INPUT CMD) - compsystems - 03-13-2017 10:48 PM

Resetting all the fields [shift],[clear], works well, this implies that there is a problem when resetting a single field


RE: Possible problem with reset values (INPUT CMD) - Carlos295pz - 03-14-2017 02:11 AM

True, this should be fixed


RE: Possible problem with reset values (INPUT CMD) - compsystems - 03-14-2017 04:45 PM

A similar problem

HOME MODE
Z3: = 4 + 8 * i; [Enter]
[SHIFT]+[MEM] USER VARS
Z3 [EDIT] [OK] (!) ?

now
(4,8) [OK] I think that the input view should not be closed, a second [OK] returns to the list of variables
[EDIT] 4 + 8 * i;
[EDIT] [OK] (!) ?


RE: Possible problem with reset values (INPUT CMD) - chromos - 03-14-2017 08:18 PM

(03-14-2017 04:45 PM)compsystems Wrote:  HOME MODE
Z3: = 4 + 8 * i; [Enter]
[SHIFT]+[MEM] USER VARS
Z3 [EDIT] [OK] (!) ?

now
(4,8) [OK] I think that the input view should not be closed, a second [OK] returns to the list of variables
[EDIT] 4 + 8 * i;
[EDIT] [OK] (!) ?

It is interesting that Ans in Memory Manager does accept editing of complex number (from 4+8*i to 4+9*i for example) but then Memory Manager shows Ans (Function) instead of Ans (Complex).