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 / Can somebody explain rem to me?

Author
Message
Outerblob
14
Years of Service
User Offline
Joined: 27th Jul 2009
Location:
Posted: 28th Jul 2009 03:29
I'm reading the tutorials and I don't get rem.
Can you guys explain it to me?

Why change the the world when it changes itself?
Brick Break
User Banned
Posted: 28th Jul 2009 04:25 Edited at: 28th Jul 2009 04:26
Rem is the command for a comment. It doesn't do anything.


WINNER list:
Latch, Lee Bamber, TDK, TheComet
Thanks for the help!
Maindric
14
Years of Service
User Offline
Joined: 22nd Jul 2009
Location:
Posted: 28th Jul 2009 04:29
Rem ( Also ` in DarkEDIT) are comments.

They are used to explain code. It is best used to explain WHY something happens, not WHAT it does, the code should be neat enough to say what it does.

Brick Break
User Banned
Posted: 28th Jul 2009 04:35
Actually, the backtick character can also be used in the native DarkBASIC editor. The compiler just ignores anything following it on the line.

WINNER list:
Latch, Lee Bamber, TDK, TheComet
Thanks for the help!
That1Smart Guy
15
Years of Service
User Offline
Joined: 26th Feb 2009
Location: Somewhere...... yep
Posted: 28th Jul 2009 05:21
rem stands for remark, it just means to the computer "ignore everything on this line" remarks are used to allow the programmer to make comments to help readability, organization, and understanding of his/her code

Maindric
14
Years of Service
User Offline
Joined: 22nd Jul 2009
Location:
Posted: 28th Jul 2009 05:40
Aw. I did not know that. I think I tried it once, but it failed. Been a while since I used DBC though...

Grog Grueslayer
Valued Member
18
Years of Service
User Offline
Joined: 30th May 2005
Playing: Green Hell
Posted: 28th Jul 2009 08:01
Don't forget about REMSTART and REMEND.



It helps us to rem off a whole section of code without hitting ` on every line.

Travis Gatlin
14
Years of Service
User Offline
Joined: 14th May 2009
Location: Oxford, Alabama
Posted: 1st Sep 2009 00:43
it basically tells the program not to execute that line

yeah im southern WATCHA GONNA DO BOUT IT?
Libervurto
17
Years of Service
User Offline
Joined: 30th Jun 2006
Location: On Toast
Posted: 12th Sep 2009 01:48
Rem is the best friend of Stinpy

TGC Forum - converting error messages into sarcasm since 2002.

Login to post a reply

Server time is: 2024-05-01 22:08:02
Your offset time is: 2024-05-01 22:08:02