01-26-2024, 04:33 PM
(01-26-2024, 04:17 PM)Dimster Wrote: . . .I don't really understand what you actually want. . .
Function Event (x as Double) as Double or Function Event(x) as Double or Function Event (x as Double)??
It's hard to give up on the old ways, if they worked, to learn a new more efficient way. (by efficient I mean to reduce all those Dim Shared variables I have at the beginning of my code to only creating them when they are actually called for service.
Code: (Select All)
'Declaration
Declare Function Endpreis(kaufpreis, mehrwertSteuer As Double) As Double
. . . Code
'Definition
Function Endpreis (kaufpreis, mehrwertSteuer As Double)
Dim As Double gesamtpreis
gesamtpreis = kaufpreis + ((kaufpreis * mehrwertSteuer) / 100)
Endpreis = gesamtpreis
End Function