Difference between revisions of "Io.type"

From GiderosMobile
Line 2: Line 2:
 
'''Available since:''' Gideros 2011.6<br/>
 
'''Available since:''' Gideros 2011.6<br/>
 
=== Description ===
 
=== 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.
+
<translate>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.</translate>
 
<source lang="lua">
 
<source lang="lua">
 
(string) = io.type(obj)
 
(string) = io.type(obj)
 
</source>
 
</source>
 
=== Parameters ===
 
=== Parameters ===
'''obj''': (any) object to test <br/>
+
'''obj''': (any) <translate>object to test</translate> <br/>
 
=== Return values ===
 
=== Return values ===
'''Returns''' (string) string representing the state of the object or nil if not file handler<br/>
+
'''Returns''' (string) <translate>string representing the state of the object or nil if not file handler</translate><br/>

Revision as of 13:32, 23 August 2018

Available since: Gideros 2011.6

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