Repeat loops won't work anymore

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
paulgabel
Posts: 31
Joined: Tue Jun 19, 2007 7:03 pm
Contact:

Repeat loops won't work anymore

Post by paulgabel » Sat Jul 14, 2007 10:31 pm

Rev Studio 2.8.1 build 470
Macintosh (iMac) Intel
Mac OS X 10.4.10

I like working hard to solve a problem, but when something as simple as a repeat loop stops working it is very frustrating. All of my repeat loops are dead. I made a test button with this simple script, and it won't work either:

Code: Select all

 
on mouseUp
  repeat 3
    go next cd
    wait 1 second
  end repeat
end mouseUp
(There are 30 cards in this stack, and the button is on card 1.)

All I get is the error: "repeat-error in statement" and it hilites the first repeat line (repeat 3, in this case). All of my repeat structures in my stacks trigger the same error! "Repeat with x = 1 to 3" structures won't work either. What could I possibly be doing wrong? Or is it the latest build of Revolution Studio that I downloaded and installed yesterday? I'm stymied. Any ideas?
Paul Gabel

kpeters
Posts: 112
Joined: Wed Mar 21, 2007 9:32 pm

Post by kpeters » Sat Jul 14, 2007 10:52 pm

Paul ~

the only thing I have to offer is this:

Had weird things happen, too, and suspected a corrupted stack. What finally helped was to completely uninstall all things Revolution, and then install 2.8.1 again.

I had - up to that point - always updated Revolution over top of the previous version.....

HTH,
Kai
Last edited by kpeters on Sun Jul 15, 2007 12:48 am, edited 1 time in total.

paulgabel
Posts: 31
Joined: Tue Jun 19, 2007 7:03 pm
Contact:

Post by paulgabel » Sun Jul 15, 2007 12:42 am

Thank Kai: Is it the stack that might be corrupted, or Revolution itself, or a corrupted Revolution corrupting a stack? I don't suppose Revolution has an uninstaller.
Paul Gabel

kpeters
Posts: 112
Joined: Wed Mar 21, 2007 9:32 pm

Post by kpeters » Sun Jul 15, 2007 12:53 am

Good questions -

I would start with the easiest and reinstall. In your "Installation Data" there is an Uninstaller.

I also wiped the Rev dir with rm to be sure....

That's all I had to do - could have been worse, I guess... Backups are my friends!

Kai

paulgabel
Posts: 31
Joined: Tue Jun 19, 2007 7:03 pm
Contact:

Thanks

Post by paulgabel » Mon Jul 16, 2007 5:57 am

Thanks Kai. I followed your advice to uninstall and reinstall. This seems to have solved the problem, though I have other weirdnesses that didn't get fixed. :D
Paul Gabel

Post Reply