From WikiChip
$sfstate Identifier - mIRC
< mirc‎ | identifiers
Revision as of 01:01, 26 January 2018 by Maroonbells (talk | contribs) (Created content for new identifier)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

$sfstate Returns either $null or 'cancel' or 'error' depending on the result of the last execution of either $sfile $sdir or $msfile(dir).

Synopsis

$sfstate Returns result of the last execution of either $sfile $sdir or $msfile(dir):
  • Returns $null if the command successfully returns at least 1 filename (sfile or $msfile) or if $sdir returned a foldername.
  • Returns 'cancel' if the selection window was closed by pressing ESCAPE or clicking 'cancel'
  • returns 'error' if the selection window exited in an error condition.

Note: $sfstate is similar to $regml(N) where it returns a historical result until that value is replaced by a different result, even if the new result is $null.

Parameters

None

Properties

None

Example

//echo -ag $msfile(c:\windows\) sfstate = $sfstate / $msfile(0) / $msfile(1)
  • Select any filename, $sfstate returns $null
  • Click the Cancel button and $sfstate returns 'cancel'
  • Click on the C:\Windows\Fonts\ folder and press 'Open', and $sfstate returns 'error'.

Compatibility

Added: mIRC v7.51 Beta 60
Added on: INVALID version INPUT TO {{mIRC date}} template.
Note: Unless otherwise stated, this was the date of original functionality.
Further enhancements may have been made in later versions.


See also