Return to Snippet

Revision: 994
at August 25, 2006 17:47 by yuconner


Initial Code
@switch( @ListBox1.selection() )
@case(string1)
	@Label1.SetText( string1 )
@case(string2)
	@Label1.SetText( string2 )
@case(string3)
	@Label1.SetText( string3 )
@case(string4)
	@Label1.SetText( string4 )
@case(string5)
	@Label1.SetText( string5 )
@end

Initial URL


Initial Description
This is the "populate()" function of one script object.
First, connect the "selectionChanged()" signal (of ListBox1) with "populate()" slot (of this script object)

Initial Title
kommander - switch structure example

Initial Tags


Initial Language
Other