Reset 
	 
	
		| Author | 
		Message | 
	 
		 
		Azzy
 
  
 
    
		 | 
		
		
			
				  Posted: Sun Nov 02, 2003 1:31 pm    Post subject: Reset  | 
	
				
				 | 
			 
			 
				
  | 
			 
			
				| is there a way to make the program reset and start over? | 
			 
			
				 | 
			 
		  | 
	 
	 
		 | 
		
		 | 
	 
	  
		  | 
	 
		 
		Sponsor Sponsor 
		 
  
		 | 
		
 | 
	 
	 
		  | 
	 
				 
		l0tt0
 
 
 
    
		 | 
		
		
			
				  Posted: Sun Nov 02, 2003 2:46 pm    Post subject: (No subject)  | 
	
				
				 | 
			 
			 
				
  | 
			 
			
				| for my blackjack game that i made i had a loop and then a loop inside it...and at the end of the game i ask if they want to play again and if they say no then it exits the loop and then i used Win.Close (win) to just close the window...dont know if that helped ya any | 
			 
			
				 | 
			 
		  | 
	 
	 
		 | 
		
		 | 
	 
	  
		  | 
	 
				 
		thoughtful
 
  
 
    
		 | 
		
		
			
				  Posted: Sun Nov 02, 2003 7:32 pm    Post subject: loop  | 
	
				
				 | 
			 
			 
				
  | 
			 
			
				Well jus as he said, put a loop...this should look something like this
 
 
	  | code: | 	 		  
 
var restart:string
 
loop
 
%your code
 
get restart
 
     if restart=n then
 
     exit
 
     end if
 
end loop
 
  | 	 
  | 
			 
			
				 | 
			 
		  | 
	 
	 
		 | 
		
		 | 
	 
	  
		  | 
	 
				 
		Tony
 
  
 
    
		 | 
		
		
			
				  Posted: Sun Nov 02, 2003 10:42 pm    Post subject: (No subject)  | 
	
				
				 | 
			 
			 
				
  | 
			 
			
				just make sure to reset all your variables    though you should declear them outside of the repeat loop.
 
 
Though another way would be to use Fork + Sys.Exec   But that's unpractical. | 
			 
			
				 
Tony's programming blog. DWITE - a programming contest. | 
			 
		  | 
	 
	 
		 | 
		
		 | 
	 
	  
		  | 
	 
				 
		Dan
 
  
 
    
		 | 
		
		
			
				  Posted: Mon Nov 03, 2003 1:43 pm    Post subject: (No subject)  | 
	
				
				 | 
			 
			 
				
  | 
			 
			
				tony wrote: 
Though another way would be to use Fork + Sys.Exec    But that's unpractical.  
 
 
and wrong on some many levels    
 
 
not to metion bad progaming     | 
			 
			
				| Computer Science Canada
Help with programming in C, C++, Java, PHP, Ruby, Turing, VB and more!  | 
			 
		  | 
	 
	 
		 | 
		
		 | 
	 
	  
		  | 
	 
				 
		Tony
 
  
 
    
		 | 
		
		
			
				  Posted: Mon Nov 03, 2003 3:14 pm    Post subject: (No subject)  | 
	
				
				 | 
			 
			 
				
  | 
			 
			
				i know, that's what I said it's unpractical  
 
 
pff   Imagine using that instead of loops   | 
			 
			
				 
Tony's programming blog. DWITE - a programming contest. | 
			 
		  | 
	 
	 
		 | 
		
		 | 
	 
	  
		  | 
	 
				 
		Dan
 
  
 
    
		 | 
		
		
			
				  Posted: Tue Nov 04, 2003 12:26 pm    Post subject: (No subject)  | 
	
				
				 | 
			 
			 
				
  | 
			 
			
				shuuuuuuuuu, dont give tom west ideas    | 
			 
			
				| Computer Science Canada
Help with programming in C, C++, Java, PHP, Ruby, Turing, VB and more!  | 
			 
		  | 
	 
	 
		 | 
		
		 | 
	 
	  
		  | 
	 
				 
		Tony
 
  
 
    
		 | 
		
		 | 
	 
	 
		 | 
		
		 | 
	 
	  
		  | 
	 
		 
		Sponsor Sponsor 
		 
  
		 | 
		
 | 
	 
	 
		  | 
	 
				 
		Dan
 
  
 
    
		 | 
		
		
			
				  Posted: Tue Nov 04, 2003 12:32 pm    Post subject: (No subject)  | 
	
				
				 | 
			 
			 
				
  | 
			 
			
				LOL, well lets not get into the war of the turing sites right now. dont need any more poleop saying they are going to take us down by making a crapy rip off and have a total of 19 members and like 2 posts    thats just painfull to wach    | 
			 
			
				| Computer Science Canada
Help with programming in C, C++, Java, PHP, Ruby, Turing, VB and more!  | 
			 
		  | 
	 
	 
		 | 
		
		 | 
	 
	  
		  | 
	 
				 
		 | 
	 
 
	
	
	 
	
	 |