Exemple for fielding( from an old of my programs...)
DIM ca$(30), cr$(50), cp$(12, 50), co$(50), n$(60), rc(6)
OUVRE1: OPEN "r", #1, "c:\temp\soc.dat", 3000: longc = LOF(1) / 3000
FIELD #1, 3000 AS to$
FOR x = 1 TO 30: GET #4, x + 10: z$ = "*"
IF z$ = "*" THEN a = CVI(db$): b = CVI(fi$): FIELD #1, a - 1 AS mu1$, b - a + 1 AS ca$(x)
NEXT: FOR x = 1 TO 50: GET #4, x + 40: z$ = LEFT$(ki$, 1): a = CVI(db$)
FIELD #1, a - 1 AS mu$, 4 AS cr$(x): NEXT
FOR rub = 1 TO 50: GET #4, rub + 90: z$ = LEFT$(ki$, 1): a = CVI(db$): IF rub > 44 THEN z$ = ""
IF z$ <> "*" THEN FOR mois = 1 TO 12: z = a - 1 + ((mois - 1) * 4): FIELD #1, z AS mu$, 4 AS cp$(mois, rub): NEXT mois
NEXT rub:
'especially here
FOR rub = 1 TO 50: a = 2800 + (rub - 1) * 4: FIELD #1, a AS mu$, 4 AS co$(rub): NEXT
FIELD #1, 1 AS mu$:
No explanation, but observe the ' mu$ ' variable use repeatedly to generate the fields.
This is the way to enter a dimensioned variable in a random file