Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
FUNCTION Event(x AS DOUBLE) AS DOUBLE
#2
(01-26-2024, 04:17 PM)Dimster Wrote: . . .
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.
I don't really understand what you actually want. . .  Huh

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
Reply


Messages In This Thread
RE: FUNCTION Event(x AS DOUBLE) AS DOUBLE - by Kernelpanic - 01-26-2024, 04:33 PM



Users browsing this thread: 1 Guest(s)