issue with structure of array
Posted: Mon Mar 15, 2021 2:48 pm
Hello:
I have problem with structure containing arrays, I can't assign array elements:
the program hang after: *ptrfich(0)\larg[1]=5, what's wrong?
any help is appreciated!
thank you
I have problem with structure containing arrays, I can't assign array elements:
Code: Select all
Structure FICH1
*vt.FICH_PTR
fnum.b
fname.s
fnamebrf.s
nbart.l
nbcol.w
larg.a[50]
flag.b[50]
align.s[50]
title.s[50]
champ.s[50]
largtot.l
start.q
largmax.a
txt.s
nocol_key.a
nocol_tot1.a
nocol_tot2.a
nocol_color.a
flag_find.a
EndStructure
Global Dim *ptrfich.FICH1(5)
*ptrfich(0)=AllocateMemory(SizeOf(FICH1))
Debug "aa"
*ptrfich(0)\fnum=35
Debug "bb="+Str(*ptrfich(0)\fnum)
*ptrfich(0)\larg[1]=5 ; hang here
Debug "hh="+Str(*ptrfich(0)\larg[1]) ; nothing displayed
Debug "dd"
any help is appreciated!
thank you