home *** CD-ROM | disk | FTP | other *** search
/ PC Welt 1999 November / PCW9911.BIN / sharewar / prx / wscripts / Prscript.exe / data1.cab / Snippets / Tcl / switch.snippet < prev    next >
Encoding:
Text File  |  1999-09-03  |  638 b   |  22 lines

  1. ;SAPIEN Snippet File
  2. ;Any line with a semi-colon in the first character position is ignored
  3. ;$CARET places the caret at that position
  4. ;$SELECTION places the selected text into that position
  5. ;$STARTSEL sets the beginning position for selected text
  6. ;$ENDSEL sets the ending position for selected text
  7. ;the caret is always moved to the end of the selected text
  8. ;any call to $CARET prior to $STARTSEL/$ENDSEL will be ignored
  9. ;any call to $CARET after $STARTSEL/$ENDSEL will result in no selection
  10. ;
  11. switch $STARTSEL <options> $ENDSEL <expression> {
  12.     <label1> { 
  13.         <statements>
  14.     }
  15.     <label2> { 
  16.         <statements>
  17.     }
  18.     default {
  19.         <statements>
  20.     }
  21. }
  22.