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...

Author
Message
Jess T
Retired Moderator
21
Years of Service
User Offline
Joined: 20th Sep 2003
Location: Over There... Kablam!
Posted: 27th Sep 2003 09:55
Howdy,
I'm trying to set variables which i can carry over into a function that i made. Ive been searching and all i can find is information on Global Arrays.. is this how to do it? using arrays?
im not very good with arrays...

Please Help.

Thanks.

If Quizz's Are Quizzical, Then What Are Test's?
MagiKnight
21
Years of Service
User Offline
Joined: 20th Sep 2003
Location:
Posted: 27th Sep 2003 10:33
yea amd no if you want a veraible to be global then do this

Global String$

MMMMMM Low level programmimg...
Jess T
Retired Moderator
21
Years of Service
User Offline
Joined: 20th Sep 2003
Location: Over There... Kablam!
Posted: 27th Sep 2003 10:51 Edited at: 27th Sep 2003 11:04
so, lets say i had this code:

name$ = "Bill"

would th global variable then be:

Global name$ = "Bill" ???

Thanks for your help

[EDIT]
I am using DBClassic 1.13 Enhanced.

If Quizz's Are Quizzical, Then What Are Test's?
BatVink
Moderator
22
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 27th Sep 2003 13:28 Edited at: 27th Sep 2003 13:29
No, like this...



[EDIT] Sorry, you're using DBC. My code was for DB Pro.

BatVink (formerly StevieVee)
http://facepaint.me.uk/catalog/default.php
Jess T
Retired Moderator
21
Years of Service
User Offline
Joined: 20th Sep 2003
Location: Over There... Kablam!
Posted: 27th Sep 2003 16:35
ah, well is there any way to do it for DBClassic?

but if not, ill use an array, which are global...

thanks...

If Quizz's Are Quizzical, Then What Are Test's?

Login to post a reply

Server time is: 2025-05-20 17:17:11
Your offset time is: 2025-05-20 17:17:11