PreviousNext
Help > API Functions > Columns & parameters information > i5_get_keys
i5_get_keys

 

 Gets the number of each field composing the key.

 

       array i5_get_keys (resource file)

 

Parameters

 

 

file

File handle returned by i5_open.

 

Return

An array with the number of each field that is composing the key, if the function succeeds.

False is returned in case of error. For getting the code and error message call i5_error function.

 

 

Example

 

 

$hdlFile = i5_open ("EASYCOM/SP_DET_OR", I5_OPEN_READWRITE);

 if (IS_BOOL($hdlFile)) trigger_error("i5_open error : ".i5_errormsg(), E_USER_ERROR);

 

 $ret = i5_get_keys($hdlFile);

 if (IS_BOOL($ret)) trigger_error("i5_get_keys error : ".i5_errormsg(), E_USER_ERROR);

 

 echo "Keys: ";print_r($ret);echo "<BR>";