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 / need help with description on a command :)

Author
Message
dance dreemer
22
Years of Service
User Offline
Joined: 24th Jan 2003
Location: cyber space
Posted: 15th Jan 2004 17:37
hi ive come accross a commnd in db whitch is not explaned in eather the book i got with it or the command help in db its self the command is "WRITE TO REGISTRAY" it says it expects (STRING,STRING,INTEGER) i was just wondering if any knew what the string,string,integer was for if any one knows please post because i havent a clue also is there an example in db that shows this command?
and how can i read and write data to the registry if any one can help i would be moast greatfull.. thanx

dancedreemer...

if tired()=1 then goto bed
dance dreemer
22
Years of Service
User Offline
Joined: 24th Jan 2003
Location: cyber space
Posted: 15th Jan 2004 20:05
its ok peeps i found what thay were thanx any hows

if tired()=1 then goto bed
JoelJ
21
Years of Service
User Offline
Joined: 8th Sep 2003
Location: UTAH
Posted: 16th Jan 2004 05:44
can you post for all to see?

dance dreemer
22
Years of Service
User Offline
Joined: 24th Jan 2003
Location: cyber space
Posted: 16th Jan 2004 18:06
oki here is what i found

"WRITE TO REGISTRY foldername,key name,value

FOLDER NAME = is the name of the file folder in the registry where it puts the key value

KEY VALUE = is the name of the data that is stored in the registry

VALUE = is the actual data stored (this can only be a integer value)

EXAMPLE.
cubesize#=10
make object cube 1,cubesize#
write to registry "my cube prog","cube size",cubesize#

the above prog will write a value of 10 to the registry if you put the command in a loop and change the cube size value it will update the registry automatically.

if you are still unsure about this command there is an example i finally found in db called "REGISTRY ACCESS" in the "help/examples".
there is also a explanation of this command in the "help/commands/input" neer the bottom of the page.


hope this helps..

dancedreemer..

if tired()=1 then goto bed

Login to post a reply

Server time is: 2025-05-22 14:25:31
Your offset time is: 2025-05-22 14:25:31