Dim?

Blitz3D Forums/Blitz3D Beginners Area/Dim?

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Hi,

I have weird problem. Here is the problem - I have simplified it here...

I have a main.bb and it in I declare

Dim dave(10)

in mainprog.bb I include subprog.bb

In subprog.bb I have...

dave(1) = 10

The compiler does not like this thinking dave is a function (not an array). It complains

"cannot find function dave".

The help says that dims are global and must be declared in the main program. They are but it does not work.

Any thoughts.?