ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Standard functions / Numeric values functions / Financial functions
  • Value of a linear amortization
FinLinearRedemption (Example)
Value of a linear amortization
WINDEVUser code (UMC) The following code is used to find out the value of an amortization. The acquisition cost, the residual value of the good and the amortization duration are entered by the user in edit controls (EDT_Cost, EDT_ResidualVal, EDT_Duration).
// --Click code on BTN_AmortizationVal
// Declare the variable
ResAmortizationVal is real
// Calculate the amortization value
ResAmortizationVal = FinLinearRedemption(EDT_Cost, EDT_ResidualVal, EDT_Duration)
IF ResAmortizationVal <> 0 THEN
// Display the result
Info("The amortization value is: " + ResAmortizationVal)
ELSE
IF ResAmortizationVal = 0 THEN
IF FinError() = 0 THEN
Info("The amortization value is null")
ELSE
// Display the error message
Error(ErrorInfo(errMessage))
END
END
END
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 05/26/2022

Send a report | Local help