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.

AppGameKit Classic Chat / I want to know the dark basic class

Author
Message
KylaCpp
7
Years of Service
User Offline
Joined: 4th Oct 2017
Location:
Posted: 14th Nov 2017 22:05
type class
i can int_ as Integer
i can't func as function
EndType
How function
fubarpk
Retired Moderator
19
Years of Service
User Offline
Joined: 11th Jan 2005
Playing: AGK is my friend
Posted: 15th Nov 2017 05:17
how to call the function
name()
end


function name()
.
.
.
Endfunction

or you could have a function that you pass values and return something

result=add(100,200)
end

function add(a as integer,b as integer)
c= a + b
endfunction c

but you cant declare a function in a type

fubar
Mobiius
Valued Member
21
Years of Service
User Offline
Joined: 27th Feb 2003
Location: The Cold North
Posted: 15th Nov 2017 08:56
Quote: " I want to know the dark basic class"

Pedantic I know, but this board is for AppGameKit, not Dark Basic. (But the advice is the same.)
Click here for VR Legend of Zelda stuff
Phaelax
DBPro Master
21
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 15th Nov 2017 13:02
Dark Basic doesn't have classes, it's not object-oriented. At best, you have user-defined types (UDT) which is like a struct. And if it wasn't for the other two responses already, I would have had no clue what you were even asking.

"I like offending people, because I think people who get offended should be offended." - Linus Torvalds
Jack
20
Years of Service
User Offline
Joined: 4th Oct 2004
Location: [Germany]
Posted: 15th Nov 2017 19:50 Edited at: 15th Nov 2017 19:53
It looks like a Dark GDK question, but I am not so shure.
if fubarpk's answer does not work, you search probably for the Dark GDK board:
https://forum.thegamecreators.com/board/37

The main advantage of a neural network when compared to a regular compiler is basically a possible answer to this question.

[/url]

Login to post a reply

Server time is: 2024-11-24 05:42:50
Your offset time is: 2024-11-24 05:42:50