Home | Reviews | GUIpedia | Forum | Fun500
HorvatM | REDIM SHARED in a SUB or FUNCTIONDoes any of you guys have any experience using REDIM on a SHARED array in a SUB or FUNCTION? Even with $DYNAMIC, QB gives me an "Array already dimensioned" error. | 2010-08-31 | 1:36 PM |
trolly | Re:REDIM SHARED in a SUB or FUNCTIONi've just tried to redim an array
it worked sucessfully
this is my code
'$DYNAMIC
DIM SHARED toto(1 to 20)
PRINT UBOUND(toto) myredim PRINT UBOUND(toto) SUB myredim() REDIM toto(1 to 40) END SUB the ouput was 20 40 | 2010-08-31 | 4:21 PM |
HorvatM | Re:REDIM SHARED in a SUB or FUNCTIONSo when using REDIM on a SHARED array you have to omit the SHARED. It works, thanks! | 2010-09-01 | 8:21 AM |
2021 Brandon Cornell