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.

Newcomers DBPro Corner / What does : mean?

Author
Message
Drifter
21
Years of Service
User Offline
Joined: 24th Jun 2003
Location:
Posted: 29th Jun 2003 22:17
':' What does it mean when you put it into code
Shadow
22
Years of Service
User Offline
Joined: 17th Oct 2002
Location: In the shadows
Posted: 29th Jun 2003 22:21
it usually means that you are starting a new line of code (without actually starting a new line on the screen
Drifter
21
Years of Service
User Offline
Joined: 24th Jun 2003
Location:
Posted: 29th Jun 2003 22:48
Thanks!
Nilrem
21
Years of Service
User Offline
Joined: 27th Feb 2003
Location: United Kingdom
Posted: 30th Jun 2003 01:57 Edited at: 30th Jun 2003 01:57
For example:



instead of



I hear and I forget. I see and I remember. I do and I understand.
Dr DooMer
21
Years of Service
User Offline
Joined: 22nd Dec 2002
Location: United Kingdom
Posted: 30th Jun 2003 03:38 Edited at: 30th Jun 2003 03:38
It can also be done to perform more than one action in an if-then condition:


Instead of:


It's because of this that you've got to be a little careful with :

"I am a living, thinking entity who was created in the sea of information."
k0shi
21
Years of Service
User Offline
Joined: 30th Dec 2002
Location: Cyberspace
Posted: 3rd Jul 2003 03:34
also you need it if you wanna put 'if else' onto one line.


famous last words-
Sorry im nervous, this is my first execution.
spooky
22
Years of Service
User Offline
Joined: 30th Aug 2002
Location: United Kingdom
Posted: 3rd Jul 2003 16:54
or it could be a label



R Tape loading error
Dave J
Retired Moderator
21
Years of Service
User Offline
Joined: 11th Feb 2003
Location: Secret Military Pub, Down Under
Posted: 3rd Jul 2003 17:17
It's basically nescessary if you want to have a chance in the 20-line comp =P

"Computers are useless they can only give you answers."
Nilrem
21
Years of Service
User Offline
Joined: 27th Feb 2003
Location: United Kingdom
Posted: 3rd Jul 2003 18:33
Ok everybody I think Drifter gets the point. (He most likely got it after the first post).


I hear and I forget. I see and I remember. I do and I understand.
Drifter
21
Years of Service
User Offline
Joined: 24th Jun 2003
Location:
Posted: 6th Jul 2003 04:22
Thanks Nilrem
Quote: "Sun makes me sneeze but thats a different story"


"Sun makes me sneeze but thats a different story"

Login to post a reply

Server time is: 2024-11-24 20:46:37
Your offset time is: 2024-11-24 20:46:37