Problem
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
-
- Posts: 12
- Joined: Tue Nov 15, 2016 12:17 pm
Problem
When I am trying to execute the code an error appears stating:
(Repeat: error in 'with' end condition expression)
I am unsure of what this means, could someone help?
(Repeat: error in 'with' end condition expression)
I am unsure of what this means, could someone help?
Re: Problem
Can you post your code that is causing the error?
Re: Problem
Hi Michael,
1. welcome to the forum!
2. What Sean said, guessing is just too timeconsuming!
3. Will move this thread to the "Beginners" forum.
Best
Klaus
1. welcome to the forum!
2. What Sean said, guessing is just too timeconsuming!
3. Will move this thread to the "Beginners" forum.
Best
Klaus
Re: Problem
Repeat with example:
########CODE#######
repeat with i=1 to 10
answer i
end repeat
#####END OF CODE#####
Here more informations: http://livecode.wikia.com/wiki/Repeat
########CODE#######
repeat with i=1 to 10
answer i
end repeat
#####END OF CODE#####
Here more informations: http://livecode.wikia.com/wiki/Repeat
Livecode Wiki: http://livecode.wikia.com
My blog: https://livecode-blogger.blogspot.com
To post code use this: http://tinyurl.com/ogp6d5w
My blog: https://livecode-blogger.blogspot.com
To post code use this: http://tinyurl.com/ogp6d5w
Re: Problem
Hi, thanks for the code sample.. That should work without an issue, so not too certain why the LiveCode engine is complaining.. What version are you using and what operating system?
Re: Problem
???
MaxV <> Michaellad (the threadstarter)
MaxV <> Michaellad (the threadstarter)
Re: Problem
Typical new user mistake:
Use or use the "with" syntax Max shows above
If you don't need to have the specific numerical indexin the "with" syntax then repeat for each is much, much faster in the loop.
Code: Select all
repeat with each line tLine of tList -- will not work
Code: Select all
repeat for each line tLine of tList
If you don't need to have the specific numerical indexin the "with" syntax then repeat for each is much, much faster in the loop.
Re: Problem
I just furnished a repeat example.Klaus wrote:???
MaxV <> Michaellad (the threadstarter)
Livecode Wiki: http://livecode.wikia.com
My blog: https://livecode-blogger.blogspot.com
To post code use this: http://tinyurl.com/ogp6d5w
My blog: https://livecode-blogger.blogspot.com
To post code use this: http://tinyurl.com/ogp6d5w
Re: Problem
I know, tell it Sean!
Re: Problem
i don't really pay that much attention
Re: Problem
Hmmm.
Never saw this error before. If one does this, as per SparkOut's suggestion:
You get
Craig
Never saw this error before. If one does this, as per SparkOut's suggestion:
Code: Select all
on mouseUp
repeat with each word tWord in "aa bb cc" --note "with", not "for"
put tword
end repeat
end mouseUp
and notcompilation error at line 2 (repeat: expecting '=') near "word", char 16
But why speculate? Hey Michaellad, where are you?error in 'with' end condition expression)
Craig