System.Classes.TThread.ReturnValue

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property ReturnValue: Integer read FReturnValue write FReturnValue;

C++

__property int ReturnValue = {read=FReturnValue, write=FReturnValue, nodefault};

Properties

Type Visibility Source Unit Parent
property protected
System.Classes.pas
System.Classes.hpp
System.Classes TThread

Description

Specifies the value returned to other waiting threads when the thread finishes executing.

Use ReturnValue to indicate success/failure or numeric result/output of the thread to the application or other threads. The WaitFor method returns the value stored in ReturnValue.

See Also