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 / an explanation of the data command

Author
Message
fllwthewolves
12
Years of Service
User Offline
Joined: 4th Sep 2011
Location:
Posted: 14th Nov 2011 03:34
can someone please explain the data command?

as in :
data: 1, 1, 1, 1, 1, 1

how its used?
when to use it?
all that good stuff.
thanks in advance.
Darkzombies
13
Years of Service
User Offline
Joined: 25th Dec 2010
Location: In multiple tabs, most likely youtube.
Posted: 14th Nov 2011 03:38
Well its good for restoring the data to any array or variable at any time really.



Just an example (Yes LBFN, this is from berzerk )

-------------------------------------------------------------
fllwthewolves
12
Years of Service
User Offline
Joined: 4th Sep 2011
Location:
Posted: 14th Nov 2011 03:57 Edited at: 14th Nov 2011 04:02
ok so..... (still very much confused)

when restore is used it brings the computer to the data of whatever you put behind the label?

and then read is used to store the next available data into the array?

any tutorials?

edit: ok played with it a little bit and figured out how to use it but my next question is what happens if you just leave it. will it mess with anyother memory in the program, or computer?

in other words it wont accidentilly point to a diffrent variable and change it will it?
Darkzombies
13
Years of Service
User Offline
Joined: 25th Dec 2010
Location: In multiple tabs, most likely youtube.
Posted: 14th Nov 2011 04:20
Only if you load it into 2 variables.

-------------------------------------------------------------
Grog Grueslayer
Valued Member
18
Years of Service
User Offline
Joined: 30th May 2005
Playing: Green Hell
Posted: 15th Nov 2011 10:02
Quote: "edit: ok played with it a little bit and figured out how to use it but my next question is what happens if you just leave it. will it mess with anyother memory in the program, or computer?

in other words it wont accidentilly point to a diffrent variable and change it will it?"


No, the DATA you have in that program can only be seen by that program. When your program ends everything in memory to run that program should be cleared automatically. Think of it like a book... the DATA stored can only be seen if it's READ and RESTORE is a bookmark.

Login to post a reply

Server time is: 2024-05-20 04:54:11
Your offset time is: 2024-05-20 04:54:11