Hello All,
When compiling the following function within a class, compiler Error is generated with the message Auto convertion currency to double is not supported. Without the Optional keyword, the statement gets copiled fine.
|
Source code
|
1
2
3
|
Public Function DistributeOutwardShares(PPE As Currency, LPE As Currency, PRR As Currency, LRR As Currency, Premium As Currency, Interest As Currency, DROEPRR As Currency, DROELRR As Currency, DROEASO As Currency, Claim As Currency, CashClaim As Currency, Commission As Currency, OtherCharges As Currency, PPO As Currency, LPO As Currency, PRW As Currency, LRW As Currency, Brokerage As Currency, XLCA As Currency, ProfitCommission As Currency, IsTaxable As Boolean, InwardSerial As Long, GNPI As Currency, blnError As Boolean, StrStaPrdFromDat As String, Liability As Currency, Optional OSAmount As Currency, Optional TaxableCalculatedPremium As Currency) As Variant
End Function
|