Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Best Practice for Library Building and Toolboxes
#15
Yes, I have already read about LBOUND and UBOUND, but I have not used it yet.
Here is an example of how it could be applied; not tested. Is from the manual for QBasic.

Code: (Select All)

Function FeldGrenzeMax (Feld As Integer)

  Dim maximum As Integer
  Dim feldGrenze As Integer

  maximum = Feld(LBound(Feld))
  For feldGrenze = LBound(Feld) To UBound(Feld)
    If Feld(feldGrenze) > maximum Then maximum = Feld(feldGrenze)
  Next feldGrenze

  FeldGrenzeMax = maximun
End Function
Reply


Messages In This Thread
RE: Best Practice for Library Building and Toolboxes - by Kernelpanic - 10-18-2023, 09:44 PM



Users browsing this thread: 1 Guest(s)