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 / Do i have to place the langauge in a certain order

Author
Message
Andrew
21
Years of Service
User Offline
Joined: 23rd Aug 2003
Location: United Kindom (what makes it important?)
Posted: 14th Sep 2003 22:23
Do i have to have something like:
Rem design character
gosub_create_character

Rem control character
gosub_control_character

Do you have to have it in that way, or can you have it:

Rem control character
gosub_control_character


Rem design character
gosub_create_character


Does it make any difference?
ReD_eYe
21
Years of Service
User Offline
Joined: 9th Mar 2003
Location: United Kingdom
Posted: 14th Sep 2003 23:11
how are you going to control the character if you haven't loaded/built it?


Mentor
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: United Kingdom
Posted: 14th Sep 2003 23:26
the computer follows the instructions in the order you give them in the listing, so if you try to use an object before it was loaded or change a variable before you assigned a value it wont work, it matters what order you ask it to do the functions and commands.

Mentor.
zircher
21
Years of Service
User Offline
Joined: 27th Dec 2002
Location: Oklahoma
Posted: 14th Sep 2003 23:40 Edited at: 14th Sep 2003 23:43
You do not have to worry about white space in your code. But, it is possible to take advantage of it to increase legibility.

For example, indentation...



While indentation may seem trivia here, when your main loop grows to ten or twenty pages in size, it can be a life saver. Where strings of characters are involved, white space is important as well.



Text between quotes is treated literally in most cases.
--
TAZ
Andrew
21
Years of Service
User Offline
Joined: 23rd Aug 2003
Location: United Kindom (what makes it important?)
Posted: 14th Sep 2003 23:48
AH is see.
This will help me a lot
Thanks guys
Phaelax
DBPro Master
21
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 16th Sep 2003 12:26
Order of commands is very important in coding. How to know what order to put things in will come with practice, that's all I got to say. Its easy to understand, but for a new programmer it might take a little time before they can really know exactly the way things should be ordered. And more importantly, understand why that is.

Login to post a reply

Server time is: 2024-09-21 01:17:10
Your offset time is: 2024-09-21 01:17:10