PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
  • Amount of each payment for an investment
FinRepayVal (Example)
Amount of each payment for an investment
WINDEVUser code (UMC) 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