Programmer Guide/Command Reference/CHECKIT: Difference between revisions

From STX Wiki
Jump to navigationJump to search
No edit summary
No edit summary
Line 13: Line 13:
|<code>/Item</code>
|<code>/Item</code>
| get type of the shell item <var>arg</var>
| get type of the shell item <var>arg</var>
| itemtype if <var>arg</var> is a shell item
| type of the shell item (cf. [[Programmer_Guide/Shell_Items|shell item types]]) if <var>arg</var> is a shell item
| empty string otherwise
| empty string otherwise
|-
|-
|<code>/Code</code>
|<code>/Code</code>
| get type of the source code <var>arg</var>
| get type of the source code <var>arg</var>
| codetype if <var>arg</var> is a source code
| <code>'macro'</code>, <code>'class'</code>, or <code>'spu'</code> if <var>arg</var> is a source code macro, class, or SPU.
| empty string otherwise
| empty string otherwise
|-
|-
Line 43: Line 43:




//
 
// itemtype: a valid shellitem type (see shell items)
// codetype: 'macro', 'class' or 'spu'
// codestyle: 'local', 'main', 'shell', 'sys', 'msgHandler' or 'global'  
// codestyle: 'local', 'main', 'shell', 'sys', 'msgHandler' or 'global'  
// note: 'global' is the default codestyle if none is specified in the code header
// note: 'global' is the default codestyle if none is specified in the code header

Revision as of 19:35, 16 April 2012

var := CHECKIT arg [option]

with option being either empty, in which case the type of the shell item or of the sourcecode item arg will be returned, or one out of the following keywords:

option description result on success result on failure
/Executable check if arg is executable, i.e., if it is a command, instance, macro, or class '1' if arg is executable '0' otherwise
/Item get type of the shell item arg type of the shell item (cf. shell item types) if arg is a shell item empty string otherwise
/Code get type of the source code arg 'macro', 'class', or 'spu' if arg is a source code macro, class, or SPU. empty string otherwise
/Visible check if arg is a visible source code '1' if it is '0' if it is not
/File get full sourcefile path of source code arg fullpath if arg is a source code empty string otherwise
/Style get style of sourcecode arg codestyle if arg is a source code empty string otherwise
no option at all get type of shell item or source code arg itemtype or codetype if arg is a shell item, or a source code empty string otherwise


// codestyle: 'local', 'main', 'shell', 'sys', 'msgHandler' or 'global' // note: 'global' is the default codestyle if none is specified in the code header

Navigation menu

Personal tools