Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / Arrays in include files

Author
Message
fedekun
14
Years of Service
User Offline
Joined: 28th Dec 2009
Location: Argentina
Posted: 3rd Jun 2010 05:41 Edited at: 3rd Jun 2010 16:52
Is that possible? Say i have my main file, a.dba
And i include b.dba, which is something like this



It says the array does not exist, i tried adding 'global' before the dim but it didn't work either, is it possible?

EDIT: Oh nevermind, by adding the global dim inside the function, it works now o_o i thought i have tried that
Indicium
16
Years of Service
User Offline
Joined: 26th May 2008
Location:
Posted: 3rd Jun 2010 17:42 Edited at: 3rd Jun 2010 17:43
Main Source:



Included:


Rawwrr. Sig Fail.
Newcastle is awesome
fedekun
14
Years of Service
User Offline
Joined: 28th Dec 2009
Location: Argentina
Posted: 3rd Jun 2010 18:14
Well i dont want to initialize the array in the main file
I need more... "portability"
Thankfully i could fix it

Login to post a reply

Server time is: 2024-11-27 06:08:37
Your offset time is: 2024-11-27 06:08:37