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.

Author
Message
SJPro
21
Years of Service
User Offline
Joined: 3rd Jul 2003
Location:
Posted: 3rd Aug 2003 20:12
Some programming languages support user defined variables such as records. This is like an array, but can consist of more than one data type. eg;

example,integer,integer,string

and then can be called by example(3) which would be a string.

Does DBC have support for this kind of thing as I couldn't find it in the manual.

Thanks.
Ag3ntSm1th
22
Years of Service
User Offline
Joined: 13th May 2003
Location:
Posted: 3rd Aug 2003 20:25
no.

"The secret to creativity is knowing how to hide your sources." - Einstein
my DarkBasic creations - http://www.sixurbanninjas.tk
Lecks
21
Years of Service
User Offline
Joined: 20th Jul 2003
Location: - Please Select -
Posted: 3rd Aug 2003 21:53
DB Pro does. they're called types in it

Ag3ntSm1th
22
Years of Service
User Offline
Joined: 13th May 2003
Location:
Posted: 3rd Aug 2003 23:18
Quote: "Does DBC have support for this kind of thing as I couldn't find it in the manual."


"The secret to creativity is knowing how to hide your sources." - Einstein
my DarkBasic creations - http://www.sixurbanninjas.tk
indi
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Earth, Brisbane, Australia
Posted: 4th Aug 2003 07:01
types are available in DBC by using the alternative editor Dark Edit.
they are however cascaded back to arrays when compiled.

Lecks
21
Years of Service
User Offline
Joined: 20th Jul 2003
Location: - Please Select -
Posted: 4th Aug 2003 07:49
i wouldnt recommend it though, i tried this a while ago and darkedit screwed my code right up . heres an example of how you can make a dodgy type . can only use 1 primative type though


Login to post a reply

Server time is: 2025-05-19 19:02:51
Your offset time is: 2025-05-19 19:02:51