Hello everybody.
My suspect is the following is a bug of AMS 7.
I wanted to use a ComboBox to select among three items. I wanted also to display some text in two labels, according to the selected item.
That's how I wrote down the code.
In On Startup section tAppName (table) and bIsDebug (boolean) are initialized, according to ini file values (boolean variable is set to true).
In Global Functions section the following function is present.
function ShowDebugMessage( sInString )
if bIsDebug then
Dialog.Message( "Debug", sInString );
end
end
In On Preload section of a given Page, the following instructions are present.
ShowDebugMessage( "Press OK to continue" );
ComboBox.ResetContent( "CoBAppName" );
for i = 1, Table.Count( tAppName ), 1 do
ComboBox.AddItem( "CoBAppName", tAppName[ i ], "" );
end
If ShowDebugMessage is invoked, CoBAppName ComboBox is correctly initialized.
Vice-versa, if I comment that function, all items of ComboBox are blank!!!
Why? I just cannot understand.
I moved around the obstacle using a ListBox instead of a ComboBox (it works!), but I am still curious...
Thanks to everyone that will try to help me.
My suspect is the following is a bug of AMS 7.
I wanted to use a ComboBox to select among three items. I wanted also to display some text in two labels, according to the selected item.
That's how I wrote down the code.
In On Startup section tAppName (table) and bIsDebug (boolean) are initialized, according to ini file values (boolean variable is set to true).
In Global Functions section the following function is present.
function ShowDebugMessage( sInString )
if bIsDebug then
Dialog.Message( "Debug", sInString );
end
end
In On Preload section of a given Page, the following instructions are present.
ShowDebugMessage( "Press OK to continue" );
ComboBox.ResetContent( "CoBAppName" );
for i = 1, Table.Count( tAppName ), 1 do
ComboBox.AddItem( "CoBAppName", tAppName[ i ], "" );
end
If ShowDebugMessage is invoked, CoBAppName ComboBox is correctly initialized.
Vice-versa, if I comment that function, all items of ComboBox are blank!!!
Why? I just cannot understand.
I moved around the obstacle using a ListBox instead of a ComboBox (it works!), but I am still curious...
Thanks to everyone that will try to help me.
Comment