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.

DarkBASIC Discussion / Global Variables and webcam

Author
Message
lukeo25
21
Years of Service
User Offline
Joined: 8th Aug 2003
Location:
Posted: 31st Dec 2003 00:44
Hi I am currently translating a VB SDK for a logitek camera into DB and I can't find any info on global variables. How do I make a variable global.
JoelJ
21
Years of Service
User Offline
Joined: 8th Sep 2003
Location: UTAH
Posted: 31st Dec 2003 00:58 Edited at: 31st Dec 2003 01:04
make it an array...
all varables are global outside of functions.
if you are using darkedit you can goto [edit]->[edit options]->check the GLOBAL extended syntax. then when you declare a varable for the first time, put GLOBAL in front of it

Jess T
Retired Moderator
21
Years of Service
User Offline
Joined: 20th Sep 2003
Location: Over There... Kablam!
Posted: 31st Dec 2003 04:34
If using the extended syntax from DarkEdit, when you declare the variable as GLobal, make sure it's not inside a function, other wise it brings up errors.

Hope I Helped...


Team EOD :: Programmer/Logical Engineer/All-Round Nice Guy
JoelJ
21
Years of Service
User Offline
Joined: 8th Sep 2003
Location: UTAH
Posted: 31st Dec 2003 04:35
Quote: "if you are using darkedit you can goto [edit]->[edit options]->check the GLOBAL extended syntax"


beat you to it

Jess T
Retired Moderator
21
Years of Service
User Offline
Joined: 20th Sep 2003
Location: Over There... Kablam!
Posted: 31st Dec 2003 04:50
Indeed you did.


Team EOD :: Programmer/Logical Engineer/All-Round Nice Guy

Login to post a reply

Server time is: 2025-06-07 10:52:45
Your offset time is: 2025-06-07 10:52:45