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 / Userdefined Datastructures

Author
Message
Fuzzie
21
Years of Service
User Offline
Joined: 15th Feb 2003
Location: Sweden
Posted: 24th Feb 2003 02:12
Hi! I was just wondering how to create my own datastructures in DB and DBPro, as equivalent to C/C++'s "userdef"/"struct" commands.
C/C++(Visual Studio, Lattice, GCC), Pascal, Visual Basic, QBasic, Amiga Basic, AMOS, Solaris Native Script, 68000-Assembler, Java, J++, Bash GNU... And now also a little bit of DarkBasic!
QuothTheRaven
21
Years of Service
User Offline
Joined: 2nd Oct 2002
Location: United States
Posted: 24th Feb 2003 05:34
er...explain to the mortals what a datastructure is. you mean an array?

Darken the skies, we are God.
Slooper
21
Years of Service
User Offline
Joined: 13th Feb 2003
Location: Sweden
Posted: 24th Feb 2003 11:19
hey Fuzzie I need your help can you give me the scancodes to a swedish keyboard please . please can you send it to my mail sloopernine@hotmail.com you can write on swedish if you want becuse you know we are both from sweden have a nice day

You never fails, only make mistakes.
John H
Retired Moderator
21
Years of Service
User Offline
Joined: 14th Oct 2002
Location: Burlington, VT
Posted: 24th Feb 2003 14:13
Slooper, please, start your own post. If you need scancodes run this code

do
cls
print scancode()
loop

OK

Fuzzie, Im sure one of us here can help, just explain what you need more. My first thought was arrays, just please explain what your problem is so we can help.

Regards,
RPGamer

Current - RPG: Eternal Destiny
http://www.halbrosproductions.netfirms.com
Dont ask those questions! Read the help files lazy!
IanM
Retired Moderator
22
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 24th Feb 2003 14:21
Fuzzie:

I know what you mean - User-defined types

type MyType
x as integer
y as float
z as string
endtype
IanM
Retired Moderator
22
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 24th Feb 2003 14:21
Oops, I meant to say that this is DBPro only. DB doesn't have UDT's.
Fuzzie
21
Years of Service
User Offline
Joined: 15th Feb 2003
Location: Sweden
Posted: 24th Feb 2003 22:29
Yes thats it! So there is a command "type" in DBPro? I didn't know. Great, thanks, I appreciate it. Too bad I can't do that in regular DB too.

Anyway, this will really help me. Again thanks!

C/C++(Visual Studio, Lattice, GCC), Pascal, Visual Basic, QBasic, Amiga Basic, AMOS, Solaris Native Script, 68000-Assembler, Java, J++, Bash GNU... And now also a little bit of DarkBasic!

Login to post a reply

Server time is: 2024-09-19 17:33:14
Your offset time is: 2024-09-19 17:33:14