Page 1 of 1
no 'type' expression
Posted: Mon Aug 15, 2016 8:16 pm
by melristau
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!
Re: no 'type' expression
Posted: Mon Aug 15, 2016 8:54 pm
by Klaus
Hi Mel,
just tested with LC 8.02 on OS X and it compiles without error.
Best
Klaus
Re: no 'type' expression
Posted: Mon Aug 15, 2016 10:27 pm
by paul_gr
tested using LC 5.5.5, LC 7.1.4 on Yosemite and Windows 10.
No errors.
Re: no 'type' expression
Posted: Tue Aug 16, 2016 8:00 am
by jmburnod
Hi,
No error for me (LC 7.06, Yosemite)
Best
Jean-Marc
Re: no 'type' expression
Posted: Tue Aug 16, 2016 11:17 am
by AndyP
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.
Re: no 'type' expression
Posted: Tue Aug 16, 2016 11:43 am
by hpsh
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.
Re: no 'type' expression
Posted: Tue Aug 16, 2016 4:37 pm
by Lagi Pittas
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