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 / How do i use types(Dark edit/extended syntax)

Author
Message
Caleb1994
16
Years of Service
User Offline
Joined: 10th Oct 2008
Location: The Internet you idiot!
Posted: 5th Apr 2009 23:44
Anyone on here know?

New Site! Check it out \/
Quirkyjim
16
Years of Service
User Offline
Joined: 18th Oct 2008
Location: At my computer
Posted: 5th Apr 2009 23:54
Hmm, found this.

That's what they WANT you to think...
Caleb1994
16
Years of Service
User Offline
Joined: 10th Oct 2008
Location: The Internet you idiot!
Posted: 6th Apr 2009 00:06
SWEET! thanks! don't know if i will ever use this but you never knowlol

New Site! Check it out \/
That1Smart Guy
16
Years of Service
User Offline
Joined: 26th Feb 2009
Location: Somewhere...... yep
Posted: 6th Apr 2009 01:26
wat r types?

There are only 10 kinds of people in the world, those who understand binary and those who dont
Caleb1994
16
Years of Service
User Offline
Joined: 10th Oct 2008
Location: The Internet you idiot!
Posted: 6th Apr 2009 02:55
kinda hard to explain..... ummmm the best way is to show the code:




thats the best way to explain it to me lol

New Site! Check it out \/
BN2 Productions
21
Years of Service
User Offline
Joined: 22nd Jan 2004
Location:
Posted: 6th Apr 2009 03:02
Kind of like arrays, but with names, rather than numbers, from what I understand. Just another way of doing things, though it is a little easier on the eyes than arrays and it makes it easier to decode.

Great Quote:
"Time...LINE??? Time isn't made out of lines...it is made out of circles. That is why clocks are round!" -Caboose
Caleb1994
16
Years of Service
User Offline
Joined: 10th Oct 2008
Location: The Internet you idiot!
Posted: 6th Apr 2009 03:07 Edited at: 6th Apr 2009 03:08
and each part of the type (like my example Name$) could be a array by itself so it could be

Type UserInfo
name$(100)
Age(100)
Number(100)
endtype

see?

plus with types, one variable can be a string,float, and integer.

New Site! Check it out \/
Yodaman Jer
User Banned
Posted: 6th Apr 2009 06:50
I finally understand types!


They look awesome...must try them out tomorrow!


Visit our video production site!
Caleb1994
16
Years of Service
User Offline
Joined: 10th Oct 2008
Location: The Internet you idiot!
Posted: 6th Apr 2009 07:20
ya they can be useful but don't over use them because your exited! hahaha i did that with arrays a long time ago

New Site! Check it out \/

Login to post a reply

Server time is: 2025-08-08 20:42:37
Your offset time is: 2025-08-08 20:42:37