ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Standard functions / Numeric values functions / Financial functions
  • Amount of each payment for an investment
FinRepayVal (Example)
Amount of each payment for an investment
WINDEVWEBDEV - Server codeReports and QueriesUser code (UMC)Ajax The following code is used to calculate the amount of each payment for an investment. The initial capital, the total number of periods and the interest rate are entered by the user in edit controls (EDT_InitCapital, EDT_NbPeriods, EDT_Rate).
// --Click code on BTN_RepaymentVal
// Declare the variable
ResRepaymentVal is real
 
// Calculate the current value
ResRepaymentVal = FinRepayVal(-EDT_InitCapital, EDT_NbPeriods, EDT_Rate)
IF FinError() = 0 THEN
Info("The amount of each payment is: " + ResRepaymentVal)
ELSE
// Display the error message
Error(ErrorInfo(errMessage))
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