ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Standard functions / Numeric values functions / Financial functions
  • Number of payments required to pay off a capital
FinPaymentNb (Example)
Number of payments required to pay off a capital
WINDEVWEBDEV - Server codeReports and QueriesUser code (UMC)Ajax The following code is used to find out the number of payments required to pay off a capital. The payment value, the rate and the amount of the loan are entered by the user in edit controls (EDT_PaymentValue, EDT_Rate, EDT_Amount).
// -- Click code on BTN_NbPayment
// Declare the variable
ResNbPayment is real
// Calculate the number of payments
ResNbPayment = FinPaymentNb(-EDT_PaymentValue, EDT_Rate, EDT_Amount)
IF FinError() = 0 THEN
Info(ResNbPayment + " payments are required")
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