AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Ayuda / WLanguage / Funciones WLanguage / Funciones estándar / Funciones de valores numéricos / Funciones financieras
  • Displaying an error message
FinError (Example)
Displaying an error message
The following code is used to find out the value of an amortization. The acquisition cost and the residual value of the good, the duration of the amortization, the period over which the amortization must be calculated and the number of months in the first year of amortization are entered by the user in edit controls (EDT_Cost, EDT_ResidualVal, EDT_Duration, EDT_Period, EDT_NbMonths).
// --Click code on BTN_AmortizationVal
// Declare the variable
ResAmortizationVal is real
// Calculate the amortization value
ResAmortizationVal = FinDecreasingRedemption(EDT_Cost, EDT_ResidualVal, ...
EDT_Duration, EDT_Period, EDT_NbMonths)
IF ResAmortizationVal <> 0 THEN
// Display the result
Info("The amortization value is: " + ResAmortizationVal)
ELSE
IF ResAmortizationVal = 0 THEN
// Error?
IF FinError() = 0 THEN
Info("The amortization value is null")
ELSE
// Display the error message
Error(ErrorInfo(errMessage))
END
END
END
Versión mínima requerida
  • Versión 9
Esta página también está disponible para…
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 27/05/2022

Señalar un error o enviar una sugerencia | Ayuda local