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
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, b, c;
local resetVAL_a, resetVAL_b, resetVAL_c;
local initVAL_a, initVAL_b, initVAL_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_a, resetVAL_b, resetVAL_c },
{ initVAL_a, initVAL_b, initVAL_c }
);
if keyPressedOnMenu == ok then
return( { a, b, c } );
else
return "Done";
end;
end;