Difference between revisions of "Io.type"

From GiderosMobile
Line 12: Line 12:
 
=== <translate>Return values</translate> ===
 
=== <translate>Return values</translate> ===
 
'''<translate>Returns</translate>''' (string) <translate>string representing the state of the object or nil if not file handler</translate><br/>
 
'''<translate>Returns</translate>''' (string) <translate>string representing the state of the object or nil if not file handler</translate><br/>
 +
 +
{{Io}}

Revision as of 21:53, 11 February 2020


Available since: Gideros 2011.6
Class: io

Description

Checks whether obj is a valid file handle. Returns the string "file" if obj is an open file handle, "closed file" if obj is a closed file handle, or nil if obj is not a file handle.

(string) = io.type(obj)

Parameters

obj: (any) object to test

Return values

Returns (string) string representing the state of the object or nil if not file handler