Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!
	Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
			
		
		
			- 
				
																			 melristau
- Posts: 56
- Joined: Tue Jul 14, 2015 5:15 pm
- 
				Contact:
				
			
						
						
													
							
						
									
						Post
					
								by melristau » Mon Aug 15, 2016 8:16 pm
			
			
			
			
			Need help on why I'm getting this Script compile error:
Error description: request: no 'type' expression
Code: Select all
on deletePlan
   repeat with x = 1 to 117
      if there is a group ("x"&x) then 
         delete group ("x"&x)
      else
         next repeat
      end if
   end repeat
end deletePlan
Thanks!
rebuilding visual programming app originally created in 1993 as Hypercard stack
						 
		 
				
		
		 
	 
	
				
		
		
			- 
				
																			 Klaus
- Posts: 14255
- Joined: Sat Apr 08, 2006 8:41 am
- 
				Contact:
				
			
						
						
													
							
						
									
						Post
					
								by Klaus » Mon Aug 15, 2016 8:54 pm
			
			
			
			
			Hi Mel,
just tested with LC 8.02 on OS X and it compiles without error.
Best
Klaus
			
			
									
									
						 
		 
				
		
		 
	 
	
				
		
		
			- 
				
																			 paul_gr
- Posts: 319
- Joined: Fri Dec 08, 2006 7:38 pm
						
						
													
							
						
									
						Post
					
								by paul_gr » Mon Aug 15, 2016 10:27 pm
			
			
			
			
			tested using LC 5.5.5, LC 7.1.4 on Yosemite and Windows 10.
No errors.
			
			
									
									
						 
		 
				
		
		 
	 
	
				
		
		
			- 
				
																			 jmburnod
- VIP Livecode Opensource Backer
  
- Posts: 2729
- Joined: Sat Dec 22, 2007 5:35 pm
- 
				Contact:
				
			
						
						
													
							
						
									
						Post
					
								by jmburnod » Tue Aug 16, 2016 8:00 am
			
			
			
			
			Hi,
No error for me (LC 7.06,  Yosemite)
Best
Jean-Marc
			
			
									
									https://alternatic.ch
						 
		 
				
		
		 
	 
	
				
		
		
			- 
				
																			 AndyP
- Posts: 634
- Joined: Wed Aug 27, 2008 12:57 pm
- 
				Contact:
				
			
						
						
													
							
						
									
						Post
					
								by AndyP » Tue Aug 16, 2016 11:17 am
			
			
			
			
			Using 8.01
Created a group x1
ran this:
on mouseUp
 deletePlan
end mouseUp
  on deletePlan
   repeat with x = 1 to 117
      if there is a group ("x"&x) then 
         delete group ("x"&x)
      else
         next repeat
      end if
   end repeat
end deletePlan
Group x1 deleted with no errors.
Repeated with Strict Compilation ticked, still all ok.
			
			
									
									Andy .... LC CLASSIC ROCKS!
						 
		 
				
		
		 
	 
	
				
		
		
			- 
				
																			 hpsh
- Posts: 52
- Joined: Tue Aug 25, 2015 8:06 pm
						
						
													
							
						
									
						Post
					
								by hpsh » Tue Aug 16, 2016 11:43 am
			
			
			
			
			testet it to, with no problem
maybe something is corrupted in the file? are sometimes things just don't work for no good reason, but thinks that are better then things that works for no good reason.
			
			
									
									
						 
		 
				
		
		 
	 
	
				
		
		
			- 
				
																			 Lagi Pittas
- VIP Livecode Opensource Backer
  
- Posts: 367
- Joined: Mon Jun 10, 2013 1:32 pm
						
						
													
							
						
									
						Post
					
								by Lagi Pittas » Tue Aug 16, 2016 4:37 pm
			
			
			
			
			And no error on 6.7.11 -- I'm still a holdout  
 
 
Just cut and paste from the forum into a new stack, the chances are a hidden control code is in the text editor - it has happened to me before but not in livecode.
Lagi