Posted By

yuconner on 08/25/06


Tagged

structures kommander


Versions (?)

kommander - switch structure example


 / Published in: Other
 

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

  1. @switch( @ListBox1.selection() )
  2. @case(string1)
  3. @Label1.SetText( string1 )
  4. @case(string2)
  5. @Label1.SetText( string2 )
  6. @case(string3)
  7. @Label1.SetText( string3 )
  8. @case(string4)
  9. @Label1.SetText( string4 )
  10. @case(string5)
  11. @Label1.SetText( string5 )
  12. @end

Report this snippet  

You need to login to post a comment.