
-----------------------------------
Thuged_Out_G
Sat Jan 10, 2004 12:14 am

So you're looking for help? check here first
-----------------------------------
Be sure to check out  for sorted links to many tutorials, and more.

here is a list and link to some of the tutorials for turing on this forum...if you cant find what your looking for, then post the question  :P 

ARRAYS-http://www.compsci.ca/v2/viewtopic.php?t=366
ARRAYS-http://www.compsci.ca/v2/viewtopic.php?t=1117
RECORDS-http://www.compsci.ca/v2/viewtopic.php?t=2325
RECURSION-http://www.compsci.ca/v2/viewtopic.php?t=2337
COMPILING-http://www.compsci.ca/v2/viewtopic.php?t=2465
PICTURES-http://www.compsci.ca/v2/viewtopic.php?t=191
WHATDOTCOLOR=http://www.compsci.ca/v2/viewtopic.php?t=2381
smooth animation-http://www.compsci.ca/v2/viewtopic.php?t=193
extreme n00b-http://www.compsci.ca/v2/viewtopic.php?t=967
if statements-http://www.compsci.ca/v2/viewtopic.php?t=367
character control-http://www.compsci.ca/v2/viewtopic.php?t=114
CLASSes-http://www.compsci.ca/v2/viewtopic.php?t=606
SOUND=http://www.compsci.ca/v2/viewtopic.php?t=190
DRAWCHECK-http://www.compsci.ca/v2/viewtopic.php?t=1309
TEXTBOXES/FIELDS-http://www.compsci.ca/v2/viewtopic.php?t=1114
COLLISION DETECTION-http://www.compsci.ca/v2/viewtopic.php?t=75
USEFUL FUNCS/PROCS-http://www.compsci.ca/v2/viewtopic.php?t=853
STRING MANIPULATION-http://www.compsci.ca/v2/viewtopic.php?t=853
UNLISTED COMMANDS-http://www.compsci.ca/v2/viewtopic.php?t=641p
COMMON GUI-http://www.compsci.ca/v2/viewtopic.php?t=452
READ AND WRITE-http://www.compsci.ca/v2/viewtopic.php?t=427, http://www.compsci.ca/v2/viewforum.php?f=3
SIMPLE DRAW COMMANDS-http://www.compsci.ca/v2/viewtopic.php?t=376

LOOPS/GOTO LINE-http://www.compsci.ca/v2/viewtopic.php?t=370
MOUSE COMMANDS-http://www.compsci.ca/v2/viewtopic.php?t=6
USING THE PRINTER-http://www.compsci.ca/v2/viewtopic.php?t=11

you can find the rest of tutorails [url=http://www.compsci.ca/v2/viewforum.php?f=3]here and various source code submisions [url=http://www.compsci.ca/v2/viewforum.php?f=48]here

chances are that your question is already answered :lol: Use [url=http://www.compsci.ca/v2/search.php]Search function to find what you need

-----------------------------------
Tony
Sat Jan 10, 2004 12:23 am


-----------------------------------
a nice collection of links to most basic tutorials :D way to go.+Bits

make sure to check out [Turing Tutorials] and [Source Code] for additional info. Since if you ask a question that was already answered a number of times, you'd probably just be refered to the tutorial anyways :roll:

-----------------------------------
shorthair
Sun Feb 01, 2004 7:40 pm


-----------------------------------
This is the first time ive seen this , never looked in her e, really great just , you just helped me find out some infor on printing , thakns for the eawsome tutorial keep up hte good work


+ BITS ,  :D  :D

-----------------------------------
AsianSensation
Sun Feb 15, 2004 9:41 pm


-----------------------------------
also, remember, as recneps and many other people have pointed out, always check with your Turing Reference manual first. Many question, if not the majority, depends on that F10 button and some creativity on your part.

-----------------------------------
the_short1
Tue Feb 24, 2004 7:56 am


-----------------------------------
yea... Good job Thug

this should(hopfully)  :roll: limit some in our help....

like common.... almost 10 000 posts........ thats CRZY


+3 bits

-----------------------------------
kingpin
Thu Jun 10, 2004 12:15 am


-----------------------------------
heres a simple one i cant figure out

whats the command to end your program...

quit doen'st work... WHAT IS IT!

-----------------------------------
Paul
Thu Jun 10, 2004 12:25 am


-----------------------------------
its 

return


-----------------------------------
the_short1
Thu Jun 10, 2004 8:19 am


-----------------------------------
no.. return DOES NOT WORK



return is to end a proc prematurely



proc hey
var c : int := 0
loop
c += 1
if c > 10 then
return % this will end the proc and RETURN to ur program!
end loop
end hey




-----------------------------------
beard0
Thu Jun 10, 2004 9:41 am


-----------------------------------
This will end your program:
assert false


-----------------------------------
Tony
Thu Jun 10, 2004 11:24 am


-----------------------------------
haha
asset false will crash the program :lol: 

and return does work... you just need to put it in the right place

A return statement terminates the procedure (or main program) in which it appears.


-----------------------------------
the_short1
Thu Jun 10, 2004 2:51 pm


-----------------------------------
i think by main program they mean if u put return in a turing UNIT to end it... ..


meh.. ill try that..ok... just tried it...


return does end the program prematurely!  but it does not go to LAST line of code.....




try this out..


var win := Window.Open ("graphics:max;max,nobuttonbar")
put "Trying to close window when 10 apears! But it WONT close return aint good for that kind of thing... :("
for a : 1..15
put a
delay (a)
if a = 10 then
return
end if
end for
Window.Close (win)


that is why i wouln't use return to end a program.... the WINDOW WONT CLOSE!

instead u can just use a boolean variable!


var endp : boolean := false
var win := Window.Open ("graphics:max;max,nobuttonbar")
loop
put "close window when 10 apears!"
for a : 1..15
put a
delay (a**3)
if a = 10 then
endp := true %% instead of return
end if
exit when endp = true
end for
exit when endp = true
end loop
Window.Close (win)





as u can see..... u just make that boolean variable false...
and have exit when boleanvarname = false in all ur loopz or w/e...

-----------------------------------
Paul
Thu Jun 10, 2004 5:46 pm


-----------------------------------


whats the command to end your program...


Well, "return" certainly ends my program.

loop
if hasch then
return
end if
end loop
put "paul"

Note it doesn't print paul :P
