Post Reply 
Possible problem with reset values (INPUT CMD)
03-06-2017, 12:21 PM (This post was last modified: 03-13-2017 10:46 PM by compsystems.)
Post: #1
Possible problem with reset values (INPUT CMD)
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
Find all posts by this user
Quote this message in a reply
Post Reply 


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



User(s) browsing this thread: 1 Guest(s)