PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
  • Number of payments required to pay off a capital
FinPaymentNb (Example)
Number of payments required to pay off a capital
WINDEVWEBDEV - Server codeReports and QueriesWindows MobileAjaxUser code (UMC) 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