Root > Reference > All Interfaces > IEurekaLoggerParams > Methods > IEurekaLoggerParams.Ret

Method IEurekaLoggerParams.Ret

Previous pageReturn to chapter overviewNext page   

Logs return value.

 

Unit

ELogging

 

Syntax

 

Code (Delphi)

public

procedure Ret(

const AResult: String;

const ACollapse: Boolean = False

); overload;

 

procedure Ret(

const AResult: Integer;

const ACollapse: Boolean = False

); overload;

 

procedure Ret(

const AResult: Cardinal;

const ACollapse: Boolean = False

); overload;

 

procedure Ret(

const AResult: Int64;

const ACollapse: Boolean = False

); overload;

 

procedure Ret(

const AResult: Pointer;

const ACollapse: Boolean = False

); overload;

 

procedure Ret(

const AResult: TObject;

const ACollapse: Boolean = False

); overload;

 

procedure Ret(

const AResult: TResponse;

const ACollapse: Boolean = False

); overload;

 

Parameters

AResult [in]

Value of Result variable.

 

ACollapse [in, optional]

Specifies if sub-routine should appear collapsed in log view. Default is False.

 

Remarks

Use this method to log return value of the sub-routine.

 

Examples

 

Code (Delphi)

function Test(const AIndex: Integer; const ASpecifier: String): Integer;

var

L: IEurekaLoggerParams;

begin

L := ELogEnter('Test').

P('AIndex', AIndex).

P('ASpecifier', ASpecifier).

D;

 

// your code

 

L.Ret(Result);

end;

 

See also




Send feedback... Build date: 2018-11-26
Last edited: 2018-11-26
PRIVACY STATEMENT
The documentation team uses the feedback submitted to improve the EurekaLog documentation. We do not use your e-mail address for any other purpose. We will remove your e-mail address from our system after the issue you are reporting has been resolved. While we are working to resolve this issue, we may send you an e-mail message to request more information about your feedback. After the issues have been addressed, we may send you an email message to let you know that your feedback has been addressed.


Permanent link to this article: https://www.eurekalog.com/help/eurekalog/topic_method_elogging_ieurekaloggerparams_ret.php