repeat for each

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
Andycal
Posts: 144
Joined: Mon Apr 10, 2006 3:04 pm

repeat for each

Post by Andycal » Tue Jun 17, 2008 12:43 pm

I've got a container called 'thisReplacers' and it should have a bunch of lines in it.

I want to process each line, so I've done the following:

Code: Select all

 repeat for each line in thisReplacers
....do stufff.
end repeat
But it won't compile. Have I typed something stupid?

TEDennis
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 41
Joined: Tue Apr 11, 2006 12:36 am

Post by TEDennis » Tue Jun 17, 2008 1:43 pm

Code: Select all

repeat for each line tLine in thisReplacers 
   ....do stuff with tLine 
end repeat 

Andycal
Posts: 144
Joined: Mon Apr 10, 2006 3:04 pm

Post by Andycal » Tue Jun 17, 2008 1:54 pm

Ahhhh!

Once again to the rescue! I owe you a couple of beers now buddy!

TEDennis
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 41
Joined: Tue Apr 11, 2006 12:36 am

Post by TEDennis » Tue Jun 17, 2008 2:33 pm

Thanks for the offer for the beers, but I don't drink. How about a couple of tickets for an Alaskan cruise? My wife would be very appreciative.

Did you notice that we both registered the same day? 10 Apr 2006

Karma, and all that stuff.

Andycal
Posts: 144
Joined: Mon Apr 10, 2006 3:04 pm

Post by Andycal » Tue Jun 17, 2008 3:38 pm

TEDennis wrote:Thanks for the offer for the beers, but I don't drink. How about a couple of tickets for an Alaskan cruise? My wife would be very appreciative.

Did you notice that we both registered the same day? 10 Apr 2006

Karma, and all that stuff.
LOL!

Tell you what, if this software I'm writing makes me squillions of dosh, the cruise is yours!

Post Reply