02-04-2005, 08:44 AM
This works in QBASIC, but not in FreeBASIC for some reason.
It says duplicated definition for "dim array(47) as integer".
Am I doing something wrong?
EDIT: Whoops, I just figured out that doing "STATIC array(47)" to dimension the variable works.
It says duplicated definition for "dim array(47) as integer".
Code:
sub subname ()
static array() as integer, notfirst
if notFirst = 0 then
notFirst = 1
dim array(47) as integer
end if
end sub
Am I doing something wrong?
EDIT: Whoops, I just figured out that doing "STATIC array(47)" to dimension the variable works.