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.

Author
Message
large_nostril
23
Years of Service
User Offline
Joined: 5th Feb 2003
Location: United States
Posted: 14th Mar 2003 02:27
Is there any way to define array elements easier than:

array(1)=#
array(2)=#
array(3)=#
...

Is there some way where you could do something like:
array(#,#,#,#,#,#,#,#,etc...)


And when I do do arrays, I always put them into a separate file and have my main dba source #include it. Is there any reason why DB doesn't include files when you use F5 "execute"?
If you want fresh underwear in the morning, take it off the night before.
Chiwawa
23
Years of Service
User Offline
Joined: 13th Oct 2002
Location: Canada
Posted: 14th Mar 2003 02:35
yes...ez way..



Chiwawa
23
Years of Service
User Offline
Joined: 13th Oct 2002
Location: Canada
Posted: 14th Mar 2003 02:40
i dont use...really often "include" but....the include should be function......you can put more than 1 function in 1 include.....but...the variable..should RETURNED ..or ..send ...by Parameter.....

main file:


included file:
large_nostril
23
Years of Service
User Offline
Joined: 5th Feb 2003
Location: United States
Posted: 14th Mar 2003 02:42
duh, I was should have gotten that muyself. Well, thanks

If you want fresh underwear in the morning, take it off the night before.
large_nostril
23
Years of Service
User Offline
Joined: 5th Feb 2003
Location: United States
Posted: 14th Mar 2003 02:44
Odd, the #include for DBP also includes vars and when DB does a "make final", the inlcudes work.

If you want fresh underwear in the morning, take it off the night before.
Chiwawa
23
Years of Service
User Offline
Joined: 13th Oct 2002
Location: Canada
Posted: 14th Mar 2003 04:20
ok...i dont have DBPro..i have DB V1.13
large_nostril
23
Years of Service
User Offline
Joined: 5th Feb 2003
Location: United States
Posted: 15th Mar 2003 02:50
same here, but DB includes other files into the code as well (not just functions) when you use #include and 'Make Final'. At least I think it does.

If you want fresh underwear in the morning, take it off the night before.
Chiwawa
23
Years of Service
User Offline
Joined: 13th Oct 2002
Location: Canada
Posted: 15th Mar 2003 05:50
ok....but i dont think you can make..other code..than function...cause...how will you call it?
Shadow Robert
23
Years of Service
User Offline
Joined: 22nd Sep 2002
Location: Hertfordshire, England
Posted: 15th Mar 2003 08:40
in Dark Basic you can't use anything except functions within #include files - no matter the form of compilation

Tsu'va Oni Ni Jyuuko Fiori Sei Tau!
One block follows the suit ... the whole suit of blocks is the path ... what have you found?

Login to post a reply

Server time is: 2026-06-10 12:22:20
Your offset time is: 2026-06-10 12:22:20