Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
suggestion: initialize array values within the DIM statement
#17
Here is the high school crap! For example Option Base 1:  Tongue

PS: So it is clearer:

Code: (Select All)
'Option Base Beispiel - 21. Dez. 2022

Option Base 1
Option _Explicit

Dim As String jahresMonate(12)
Dim As Integer monat

Data Januar,Februar,Maerz,April,Mai,Juni
Data Juli,August,September,Oktober,November,Dezember

For monat = 1 To 12
  Read jahresMonate(monat)
  Print Using "Monat ##. "; monat;
  Print jahresMonate(monat)
Next monat

End
Reply


Messages In This Thread
RE: suggestion: initialize array values within the DIM statement - by Kernelpanic - 12-21-2022, 10:41 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Preserving multi-dim arrays Pete 5 426 12-19-2025, 03:17 PM
Last Post: Dimster
  Arbitrary CONST values Unseen Machine 31 2,962 10-29-2025, 05:44 AM
Last Post: bplus
  Array out of passing arrays... Pete 2 414 09-22-2025, 08:53 PM
Last Post: ahenry3068
  Huge array of variable length strings mdijkens 9 1,864 10-17-2024, 02:01 PM
Last Post: mdijkens
  An Array v's A Dictionary Dimster 10 1,907 10-08-2024, 06:59 PM
Last Post: TempodiBasic

Forum Jump:


Users browsing this thread: 2 Guest(s)