I am trying to write a procedure witch inits a program. I am reading a array from a textfile. I want to use this array global in my program. my question is How to redim a array in a procedure while i use it global. With the next example i get a error named "Redim can't be used on a non-declared array:bmkust"
Code: Select all
procedure init()
do
a$="1000"
tel=tel+2
redim bmkust(tel)
bmkustx(tel)=val(a$)
until a$="1000"
endprocedure
global dim bmkust(1)
init()