HP Forums

Full Version: Possible problem with reset values (INPUT CMD)
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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
Resetting all the fields [shift],[clear], works well, this implies that there is a problem when resetting a single field
True, this should be fixed
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] (!) ?
(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).
Reference URL's