no 'type' expression

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

Post Reply
melristau
Posts: 56
Joined: Tue Jul 14, 2015 5:15 pm
Location: Northern Colorado
Contact:

no 'type' expression

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: 13854
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: no 'type' expression

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
Location: Blenheim, New Zealand

Re: no 'type' expression

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
VIP Livecode Opensource Backer
Posts: 2718
Joined: Sat Dec 22, 2007 5:35 pm
Location: Genève
Contact:

Re: no 'type' expression

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: 615
Joined: Wed Aug 27, 2008 12:57 pm
Location: Seeheim, Germany (ex UK)
Contact:

Re: no 'type' expression

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 Piddock
https://livecode1001.blogspot.com Built with LiveCode
https://github.com/AndyPiddock/TinyIDE Mini IDE alternative
https://github.com/AndyPiddock/Seth Editor color theming
http://livecodeshare.runrev.com/stack/897/ LiveCode-Multi-Search

hpsh
Posts: 52
Joined: Tue Aug 25, 2015 8:06 pm

Re: no 'type' expression

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
VIP Livecode Opensource Backer
Posts: 365
Joined: Mon Jun 10, 2013 1:32 pm

Re: no 'type' expression

Post by Lagi Pittas » Tue Aug 16, 2016 4:37 pm

And no error on 6.7.11 -- I'm still a holdout :D

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

Post Reply

Return to “Getting Started with LiveCode - Complete Beginners”