PC SOFT

AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

  • Amount of each payment for an investment
FinRepayVal (Example)
Amount of each payment for an investment
WINDEVWEBDEV - Server codeReports and QueriesWindows MobileUser 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
Versión mínima requerida
  • Versión 9
Comentarios
Haga clic en [Agregar] para publicar un comentario