Programmer Guide/Shell Items: Difference between revisions

From STX Wiki
Jump to navigationJump to search
Line 9: Line 9:
                                 // in the variable #tableItem
                                 // in the variable #tableItem
   
   
// either command will delete the recently allocated table item:
    // either command will delete the recently allocated table item:
  delete hugo                    // (a) delete the table item by its name
  delete hugo                    // (a) delete the table item by its name
// - OR -
    // - OR -
  delete $#tableItem            // (b) delete the table item by its name stored in #tableItem
  delete $#tableItem            // (b) delete the table item by its name stored in #tableItem
// - OR -
    // - OR -
  delete /Var #tableItem        // like (b), plus: the variable #tableItem will be cleared
  delete /Var #tableItem        // like (b), plus: the variable #tableItem will be cleared



Revision as of 17:59, 22 March 2011

Introduction

S_TOOLS-STx implements a number of different objects which can be used to manipulate files, graphics, dialogs, etc. These objects are called shell items. See Introducing Shell Items for an introduction to shell items. For a complete list of available shell items, see below.

A new instance of a shell item is created using the NEW command. For deleting an instance of a shell item, there is the DELETE command.

#tableItem := new table hugo   // will create a new table item called hugo
                               // and store its name (i.e., the string "hugo")
                               // in the variable #tableItem

   // either command will delete the recently allocated table item:
delete hugo                    // (a) delete the table item by its name
   // - OR -
delete $#tableItem             // (b) delete the table item by its name stored in #tableItem
   // - OR -
delete /Var #tableItem         // like (b), plus: the variable #tableItem will be cleared

Shell items (alphabetical list)

<splist parent=Programmer_Guide/Shell_Items sort=asc sortby=title showpath=no liststyle=unordered kidsonly=yes >

Navigation menu

Personal tools