I was in the process of "cleaning up" some of my programs and
ran across somewhat of a head-scratcher. I am using PB 2.1f for
DOS.
If I use the following procedure, I get an
"Error 599: Parameter arrays may not be altered", which isn't in
the book that I have.
It errors out on the REDIM statement.
sub make.set(a&&,b$(),c,d)
redim b$(c)
...
...
end sub
On the other hand, if I go this route:
sub make.set(a&&,c,d)
shared b$()
redim b$(c)
...
...
end sub
It compiles and runs as advertised. Anybody know the why's and
what-for's of whats happening 'cause I sure don't? Thanks.
------------------
ran across somewhat of a head-scratcher. I am using PB 2.1f for
DOS.
If I use the following procedure, I get an
"Error 599: Parameter arrays may not be altered", which isn't in
the book that I have.
It errors out on the REDIM statement.
sub make.set(a&&,b$(),c,d)
redim b$(c)
...
...
end sub
On the other hand, if I go this route:
sub make.set(a&&,c,d)
shared b$()
redim b$(c)
...
...
end sub
It compiles and runs as advertised. Anybody know the why's and
what-for's of whats happening 'cause I sure don't? Thanks.
------------------
Comment