Programmer Guide/Command Reference/CHECKIT: Difference between revisions

From STX Wiki
Jump to navigationJump to search
No edit summary
No edit summary
Line 6: Line 6:
!option!!description!!result on success!!result on failure
!option!!description!!result on success!!result on failure
|-
|-
|/Executable
|<code>/Executable</code>
|check if 'arg' is a command, instance, macro or class
|check if 'arg' is a command, instance, macro or class
| '1'
| '1'
| '0'
| '0'
|-
|-
|/Item
|<code>/Item</code>
| get type of shellitem 'arg'
| get type of shellitem 'arg'
| itemtype
| itemtype
| '' (i.e., empty string)
| '' (i.e., empty string)
|-
|-
| /Code
|<code>/Code</code>
| get type of sourcecode 'arg'
| get type of sourcecode 'arg'
| codetype
| codetype
| ''
| ''
|-
|-
| /Visible
|<code>/Visible</code>
| check if 'arg' is a visible sourcecode
| check if 'arg' is a visible sourcecode
| '1'
| '1'
| '0'
| '0'
|-
|-
| /File
| <code>/File</code>
| get full sourcefilepath of sourcecode 'arg'
| get full sourcefilepath of sourcecode 'arg'
| fullpath
| fullpath
| ''
| ''
|-
|-
| /Style
| <code>/Style</code>
| get style of sourcecode 'arg'
| get style of sourcecode 'arg'
| codestyle
| codestyle

Revision as of 19:20, 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 a command, instance, macro or class '1' '0'
/Item get type of shellitem 'arg' itemtype (i.e., empty string)
/Code get type of sourcecode 'arg' codetype
/Visible check if 'arg' is a visible sourcecode '1' '0'
/File get full sourcefilepath of sourcecode 'arg' fullpath
/Style get style of sourcecode 'arg' codestyle
no option at all get type of shellitem or sourcecode 'arg' itemtype or codetype


// // itemtype: a valid shellitem type (see shell items) // codetype: 'macro', 'class' or 'spu' // 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