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 Professional Discussion / how to create new objects/types ?

Author
Message
dark puppus
22
Years of Service
User Offline
Joined: 16th Aug 2003
Location:
Posted: 17th Aug 2003 02:38
This language is powerfull more than i thought months away, but i can't believe it have'nt a kind of command very useful:
command like TYPE and RECORD ,
I've programmed with oriented object (o.o)languages and i'found very limiting the absence in dark basic the possibility of making a own type.

I'm not questioning the choices of the programmers on excluding all difficult procedures of an o.o. language, but this feature was also included in the original QUICK BASIC, which was not o.o..
IanM
Retired Moderator
23
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 17th Aug 2003 02:41
Hmmm, do you mean like this?

dark puppus
22
Years of Service
User Offline
Joined: 16th Aug 2003
Location:
Posted: 17th Aug 2003 03:05 Edited at: 17th Aug 2003 03:09
yes, i have'nt found this in the help file

But i can write a code like this :



and for instantiating the type ?

IanM
Retired Moderator
23
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 17th Aug 2003 03:28
Right idea, slightly wrong syntax

'endtype', not 'end type'
dark puppus
22
Years of Service
User Offline
Joined: 16th Aug 2003
Location:
Posted: 17th Aug 2003 03:34
perfect, in the online manual i never found things like this, do you know where i can found the newest resources for features of this type ? i think i've also to upgrade my version of db pro ... right ?

spooky
23
Years of Service
User Offline
Joined: 30th Aug 2002
Location: United Kingdom
Posted: 17th Aug 2003 03:38
It is in the online help. Hit F1 in editor, click on 'principles', then on 'Datatypes and variables'. Types are explained there.

The programmer formerly known as sonic

Login to post a reply

Server time is: 2026-07-22 12:21:03
Your offset time is: 2026-07-22 12:21:03