PreviousNext
Help > API Functions > Objects > i5_objects_list_close
i5_objects_list_close

 

Close handle received from i5_ objects_list ().

 

  bool i5_objetcs_list_close (resource list)

Parameters

 

 

list

Object list handle as returned by i5_ objects_list.

 

Return

 

True if OK, false if failed.

 

Error returned

I5_ERR_PHP_HDLDFT

256

No default connection found.

I5_ERR_PHP_OPTIONSTYPE

259

The type of " I5_OPTIONS_ALIAS" option must be x and not x

I5_ERR_PHP_OPTIONSNUMBER

260

Option number -1 is unknown.

I5_ERR_PHP_TYPEPARAM

262

Type of element x in parameter -1 must be y. Type z was provided.

 

 

Example

 

 

$HdlList = i5_objects_list('EASYCOM', 'S*', '*FILE');

if (is_bool($HdlList)) trigger_error('i5_objects_list error : '.i5_errormsg(), E_USER_ERROR);

 

$count = 0;

while($list = i5_objects_list_read($HdlList)){

 print_r($list);echo '<BR>';

 $count ++;

 if ($count > 3) break;

}

 

$ret = i5_objects_list_close($HdlList);

if (!$ret) trigger_error('i5_object_list_close error : '.i5_errormsg(), E_USER_ERROR);