Live Help
Membership
You are a guest!

Register Today!

Log In
Reset Password
Game Network
Community Forum

MMO GAME LIST
World of Warcraft
Age of Conan
Anarchy Online
Archlord
Cabal Online
City of Heroes
City of Villains
Dark Age of Camelot
Darkfall Online
Diablo 2
Dungeons and Dragons
Dofus
Eve Online
Everquest 2
Final Fantasy XI
Guild Wars
Hero Online
Knight Online
Lineage 2
Lord of the Rings Online
Maple Story
Ragnarok Online
Runescape 2
Second Life
SilkRoad Online
Star Wars Galaxies
Tibia
Warhammer Online

FPS GAME LIST
Call of Duty
Combat Arms
Counter Strike
Halo

Welcome Guest ( Log In | Register )

> using Label and GOTO commands
post Oct 18 2009, 06:32 AM
Post #1

margreg



SCAR Coder
Group Icon

Group: Elite Members
Posts: 184
Joined: 26-April 09
Member No.: 893,649






Once I have asked a question if it possible using goto command in SCAR and the answer was no.
So now I know it possible. The syntaxes looks like that:

program goto_test;

label
making_label;

begin
making_label:
WriteLn('Hello');
Count := 1;
wait(2000);
goto making_label;
end.

so as you can see the command is declaring a parameter and then using goto to jump to it without any statements like it always work with repeat - until commands.

Enjoy grin.gif
Go to the top of the page
 
+Quote Post
 
Start new topic
Replies
post Oct 18 2009, 08:02 PM
Post #2

lilwitte



SCAR Coder
Group Icon

Group: Elite Members
Posts: 318
Joined: 22-June 09
From: Deep in my Coding Cave. But don't feel bad! After all, it's on the darkside, and we have cookies!
Member No.: 934,937







lol, i was JUST thinking about that last night! i forgot how to declare the labels and was beating myself up over it! oh, what luck do i have for you to post the tut for it at least xD


--------------------
SCAR Coder

DofusBaseV1
[||||||||||]

Want to make progress bars like me?
CODE
use this base one as an example!
[[color="#00FF00"]|[/color][color="#FF0000"]|||||||||[/color]]
Go to the top of the page
 
+Quote Post

Posts in this topic


Reply to this topicStart new topic

 


> Board Footer
Time is now: 21st March 2010 - 10:52 AM