Note that there are some explanatory texts on larger screens.

plurals
  1. POFunction & Procedures in Delphi (Defaults & Optional Parameters)
    text
    copied!<p>EDIT:</p> <p>Is there a better way of doing this ?</p> <pre><code>TPendingBets = class(TDataModule) private public function GetBdy(out IdEvent : Integer ) : Boolean; overload; function GetBdy(out IdEvent : Integer; out idBetType : TBetTypes) : Boolean; overload; function GetBdy(out IdEvent : Integer; out idBetType : TBetTypes; Out TotalOrgStake,Price : Double; out PriceError :Boolean): Boolean; overload; end; implementation </code></pre> <p>////////////////////</p> <pre><code>function TPendingBets.GetBdy(out IdEvent : Integer ): Boolean; var idBetType : TBetTypes; TotalOrgStake,Price : Double; PriceError :Boolean; begin result := GetBdy(IdEvent,idBetType,TotalOrgStake,Price,PriceError); end; </code></pre> <p>////////////////////</p> <pre><code>function TPendingBets.GetBdy(out IdEvent : Integer; out idBetType : TBetTypes): Boolean; var TotalOrgStake,Price : Double; PriceError :Boolean; begin result := GetBdy(IdEvent,idBetType,TotalOrgStake,Price,PriceError); end; </code></pre> <p>////////////////////</p> <pre><code>function TPendingBets.GetBdy(out IdEvent : Integer; out idBetType : TBetTypes; Out TotalOrgStake,Price : Double; out PriceError :Boolean): Boolean; begin result := false; if cdBdy.Eof = False then begin IdEvent := cdBdy.FieldByName(IdEvent ).AsInteger); idBetType := TBetTypes(cdBdy.FieldByName(idBetType ).AsInteger); //. //. result := True; end; end; </code></pre> <p><strong>NOTE:</strong></p> <p>As my initial question was not very clear I have removed part of it</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload