Repeat loops and goto's

Can I ask two questions please,
Q1.
is there a way of telling a repeat loop to 'step' over
numbers, I cannot find anything in the help files that mention this
at all....
For example, repeat with i := 1 to 200 'step 2' This would
result in values of 1, 3, 5, 7, etc etc
For example, repeat with i := 1 to 200 'step 3' This would
result in values of 1, 4, 7, 10, etc etc
Q2.
Goto commands in a calculation icon.
I can only find a reference that will use the
goto(IconID@"TARGETICON") Is there anyway I can use the goto
command inside a calculation. I need to set up a logical test,
basically to say that if this isn't true go back to here and do it
again(a repeat loop won't work)
One day I think I may just get the hang of
this.........

I didn't examine your code closely, but for the future, if
you need to
randomly pull values from a list and you don't want
duplicates...
Copy the list to a new list, then after you pull a value from
the list
within the loop, immediately use DeleteAtIndex to remove that
value from
the temporary list. So during the next iteration of the loop,
the
previously pulled value is not present to be pulled again.
Erik
The Pc Doctor wrote:
> Many thanks for your suggestions, I think I just got
caught up the my knowledge
> of VB and the for next loop, the solution was so obvious
now you mention it.
>
> The second one I've also solved by way of different
Calculation icons. Here
> is what I was doing (Please forgive the awful code, I am
still new at this)
>
> The whole point of this is to select a chosen number of
Questions from a list
> of a certain amount of questions - the numbers are not
known and is subject to
> change.
>
> I would seed a random numbers (between 1 and QNo) into a
list of up to Q0
> numbers and then use the below code to check to any
duplicate numbers. The
> problem I had was finding a way of if I found duplicate
numbers replacing them
> and testing them again, and again until no duplicates
exist.
>
> I put the below in it's own calculation icon called
'CheckIt'
> - - - - - -
> SortByValue(QuestionStore, TRUE)
> again := 0
> repeat with i := 1 to Q0 - 1
> if QuestionStore = QuestionStore then
> QuestionStore := Random(1,QNo,1)
> again := 1
> end if
> end repeat
> - - - - - - - -
> I then put the following in a following calculation Icon
> - - - - - - - -
> -- Test to see if we have duplicate numbers, if yes then
go back to the check
> random numbers Icon.
> if again = 1 then
> GoTo(IconID@"CheckIt")
> end if
> - - - - - - - - - -
>
> Well it works
>
> Thanks again
>
> Paul
>
Erik Lord
http://www.capemedia.net
Adobe Community Expert - Authorware
http://www.macromedia.com/support/forums/team_macromedia/
http://www.awaretips.net -
samples, tips, products, faqs, and links!
*Search the A'ware newsgroup archives*
http://groups.google.com/groups?q=macromedia.authorware

Similar Messages

  • How to loop and read repeating table data of infoPath form in Visual studio workflow.

    Hi,
    I am trying to read info Path form repeating table data in Visual studio workflow.
    could anyone elaborate me in brief how to loop through repeating table and read all rows value one by one in workflow.
    any help would be more then welcome. 
    Thanks...

    Hi Rohan,
    According to your description, my understanding is that you want to create a Visual Studio workflow to get data from info path repeating table.
    I suggest you can submit Repeating Table to a SharePoint List and then you can create a .NET workflow to read data from the SharePoint List.
    Here are some detailed articles for your reference:
    Codeless submitting InfoPath repeating table to a SharePoint list
    Create a Workflow using Visual Studio 2010
    Best Regards
    Zhengyu Guo
    TechNet Community Support

  • Repeat Loop times out and I don't want it to

    Maybe there is a better way to do this but I want an action to take place whenever the modification date of a certain file changes. This is what I use but it errors because of a timeout after about 10 mins if the mod date doesn't change. I need this to be checking all the time.
    on idle
    tell application "Finder"
    set UpdatedOLD to modification date of file aFile
    set UpdatedNEW to modification date of file aFile
    end tell
    repeat while UpdatedOLD = UpdatedNEW
    tell application "Finder"
    set UpdatedNEW to modification date of file aFile
    end tell
    end repeat
    end idle
    How can I get this to work?

    Hello
    I think you have stepped on a land mine set by OSX 10.6.
    There's a fatal bug in Apple Event Manager in 10.6 such that one event in every 65535 events will be lost and never be replied, which will result in Apple Event timeout error on sender. This bug has been reported shortly after the 10.6 release and has not yet been fixed as of 10.6.2.
    In your current script, you're continuously sending event to Finder and sooner on later send an event with the specific event id that is doomed to be lost. Judging from the time till you see the time out error, that is 10 min, you're at most sending 65535 / 600 = 109.225 events / sec to Finder. You can reduce the number of events by inserting some delay, e.g. 'delay 1' in your repeat loop but it can only defer the failure.
    cf.
    Re: Timed Out (Silence)
    http://lists.apple.com/archives/applescript-users/2009/Oct/msg00117.html
    Re: spurious timeout on nth Apple event on Snow Leopard
    http://lists.apple.com/archives/applescript-users/2009/Nov/msg00041.html
    A better way to achieve your task would be to let a launchd agent watch the file.
    A recipe is as follows.
    1) Save a compiled script in :
    ~/Library/Scripts/launchd/watchdog.1.scpt
    with contents :
    --SCRIPT
    -- Here put your script that is to be triggered when the file is modified.
    -- e.g.
    tell application "System Events"
    display dialog "The file is modified." giving up after 10
    end tell
    --END OF SCRIPT
    2) Save a UTF-8 plain text file in :
    ~/Library/LaunchAgents/watchdog.1.plist
    with contents :
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
    <plist version="1.0">
    <dict>
    <key>Label</key>
    <string>watchdog.1</string>
    <key>Disabled</key>
    <false/>
    <key>Program</key>
    <string>/usr/bin/osascript</string>
    <key>ProgramArguments</key>
    <array>
    <string>osascript</string>
    <string>/Users/USER_NAME/Library/Scripts/launchd/watchdog.1.scpt</string>
    </array>
    <key>WatchPaths</key>
    <array>
    <string>POSIX_PATH_TO_THE_FIILE</string>
    </array>
    </dict>
    </plist>
    *Change USER_NAME to your user name and POSIX_PATH_TO_THE_FIILE to the POSIX path to the file to be watched.
    3) Issue the following command in Terminal to load the launchd agent :
    launchctl load ~/Library/LaunchAgents/watchdog.1.plist
    Or
    3a) Log-out and re-log-in to load the launchd agent.
    *The name 'watchdog.1.plist' and 'watchdog.1.scpt' and the script's location '~/Library/Scripts/launchd/' are mere examples. You may change them as you see fit.
    cf.
    http://developer.apple.com/mac/library/documentation/Darwin/Reference/ManPages/m an5/launchd.plist.5.html
    http://developer.apple.com/mac/library/documentation/Darwin/Reference/ManPages/m an1/launchctl.1.html
    Good luck,
    H
    Message was edited by: Hiroto (fixed typo)

  • Real Instruments play beyond end of repeated loop

    I've tried every google-fu trick I could think of to see if anyone else has had this problem.
    I record a real instrument (say an electric guitar riff). I drag/repeat/loop it 3 or 4 times. It plays properly.
    Then at some point I select it, and move it left or right.
    The part starts at the right time, but will repeat an extra time beyond the visible onscreen loop. Once this glitch occurs, neither resaving, shrinking/re-repeating, moving it around and then back to where I want it make the track end when it's supposed to.
    The only way I've found around it, is to end the repeat early and let the erroneous repeat play out, or just end the repeat entirely, and use cut'n'paste instead.
    This happens to me *all the time*... anyone else seen this or have a resolution?

    Thanks for the suggestions. I can't remember deleting any tracks... however, how would i check for "hidden" tracks?
    The funny thing is i can hear the effect returns for the real instrument tracks...tracks that are heavily reverbed i can hear a faint echo of the track. and like i mentioned the drum loop and software piano still play fine.
    And, I also see monitor activity in the real instrument tracks when i play the song. Everything looks normal, but of course, the sound isn't there.
    Thanks again for your help!
    Message was edited by: Ike the Longshoreman
    P.S. I just tried Unsolo all tracks and Unmute all tracks... still the same problem.

  • Trying to purchase music, it sends me to verify my acct info, I do that hit done, it asks if I still want the purchase, I select Yes and it sends me back to verify billing information.  How can I get out of this darn loop and make my purchase?

    In itunes Store. Trying to purchase music, it sends me to verify my acct info, I do that, hit done, it asks if I still want the purchase, I select Yes and it sends me back to verify billing information.  How can I get out of this darn loop and make my purchase?

    Hi itunes for windows,
    If you are being repeatedly prompted to authorize iTunes, even after you have already done so, you may find the following article helpful:
    Apple Support: iTunes repeatedly prompts to authorize computer to play iTunes Store purchases
    http://support.apple.com/kb/ts1389
    Regards,
    - Brenden

  • Repeat loops

    Within a repeat loop, I get creation dates of sequential files. I can get the creation date of the first file but then when it repeats it wont get the creation date of the next file. When i run it again i can get the creation date of the first two, but not the third. The next time i run it i can get the creation date of the first three but not the fourth, and so on.
    Does anyone know why this is happening and what can i do to get the creation dates the first time?
    Thank you

    Hello John,
    The part where I am having a problem is here.
    I perform some script that allows me to find these files and which files i need to use and then there is this..
    count folder folderList
    set folderCount to result
    set x to 0
    repeat until x = folderCount
    set x to x + 1
    set filePath to folderList & ":" & x & ".jpg"
    get creation date of file filePath
    set creationDate to result
    get date string of creationDate
    set dateString to result
    get time string of creationDate
    set timeString to result
    theres a lot more between this and the end of the repeat.
    It won't allow me to get the creation date out of the file filePath. so there for I cannot perform the rest of this. I thought it was a problem with the computer because what I have should run. It does not run the first time, it says that the creation date is missing value in the event log. Then I run it again and it gets the first files date, but not the second. then the next time it gets the first two and not the third and so on..
    thanks for all the help,
    David

  • Nested Repeat Loops in Applescript

    The following code has two lists: myURLs and myIMGs. I want to loop through the sites listed in myURLs, take a screenshot, then save them in my Shared folder as the file name listed in myIMGs. So, google.com's image will be saved as "google.jpg", and so forth. The list in myIMGs corresponds to the list in myURLs.
    This is what I have, but it doesn't quite work. It loads the first URL from myURLs, takes a screenshot of it, but then loops through each file name in myIMGs and saves that one screenshot with all those various file names. Then, it loads the next URL in myURLs and does the same thing. How do I set the file names in the myIMGs list to correspond to the URLs being loaded from myURLs? I'm having trouble with the nested loops.
    set myURLs to {"https://google.com", "https://wikipedia.org", "https://bing.com", "https://apple.com"}
    set myIMGs to {"google.jpg", "wikipedia.jpg", "bing.jpg", "apple.jpg"}
    -- Sets settings of Safari without interferring with user's settings.
    repeat with myURL in myURLs
              tell application "Safari"
                        set myDoc to front document
                        set windowID to id of window 1
                        do JavaScript ("window.open('" & myURL & "','_blank','titlebar=0');") in document 1
      close window id windowID
                        set the bounds of the front window to {0, 20, 915, 812}
      delay 5
              end tell
    -- Screengrab, crop and save to Shared folder
              repeat with myIMG in myIMGs
                        do shell script "screencapture -o -l$(osascript -e 'tell app \"Safari\" to id of window 1') /Users/Shared/" & myIMG
                        set this_file to "Macintosh HD:Users:Shared:" & myIMG
                        try
                                  tell application "Image Events"
      -- start the Image Events application
      launch
      -- open the image file
                                            set this_image to open this_file
      -- get dimensions of the image
                                            copy dimensions of this_image to {W, H}
      -- Crops off the Safari header
      crop this_image to dimensions {W, H - 50}
      -- save the changes
                                            save this_image with icon
      -- purge the open image data
      close this_image
                                  end tell
                        end try
              end repeat
    end repeat

    Switch to an indexed loop and you don't need the extra repeat loop; you can run the two lists in parallel. See my changes in red:
    set myURLs to {"https://google.com", "https://wikipedia.org", "https://bing.com", "https://apple.com"}
    set myIMGs to {"google.jpg", "wikipedia.jpg", "bing.jpg", "apple.jpg"}
    -- Sets settings of Safari without interferring with user's settings.
    repeat with i from 1 to (count of myURLs)
              tell application "Safari"
                        set myDoc to front document
                        set windowID to id of window 1
                        do JavaScript ("window.open('" & item i of myURLs & "','_blank','titlebar=0');") in document 1
                                  close window id windowID
                        set the bounds of the front window to {0, 20, 915, 812}
                                  delay 5
              end tell
      -- Screengrab, crop and save to Shared folder
              do shell script "screencapture -o -l$(osascript -e 'tell app \"Safari\" to id of window 1') /Users/Shared/" & (item i of myIMGs)
              set this_file to "Macintosh HD:Users:Shared:" & myIMG
              try
                        tell application "Image Events"
      -- start the Image Events application
                                  launch
      -- open the image file
                                  set this_image to open this_file
      -- get dimensions of the image
                                  copy dimensions of this_image to {W, H}
      -- Crops off the Safari header
                                  crop this_image to dimensions {W, H - 50}
      -- save the changes
                                  save this_image with icon
      -- purge the open image data
                                  close this_image
                        end tell
              end try
    end repeat

  • Repeat loop in filemaker Pro 7 database

    How can I get my script to loop through a large FM database of records and change the data in a particular field as in the script below? I cannot figure out the syntax for the repeat loop...
    with timeout of "3000" seconds
    tell application "FileMaker Pro"
    go to database "CPA FM Log Copy"
    show every record of database "CPA FM Log Copy"
    set theCount to number of record of database "CPA FM Log Copy" as integer
    repeat with i from record theCount of database "CPA FM Log Copy"
    if field "ph" of record i of database "CPA FM Log Copy" is "NG" then
    set data field "ph" of current record of database "CPA FM Log Copy" to "Nice Going"
    else if field "ph" of record i of database "CPA FM Log Copy" is "EC" then
    set data field "ph" of current record of database "CPA FM Log Copy" to "Everything Cool"
    end if
    end repeat
    end tell
    end timeout

    Depending on the number of records in the database, this isn't the most efficient way of doing this.
    You should use a 'whose' clause in your script to narrow the FileMaker results to the subset of records you want to change, then change them all at once. This is far more efficient than looping through thousands of records in AppleScript looking for the ones you want.
    This should get you on the right track:
    <pre class=command>tell application "Filemaker Pro"
    go to database "CPA FM Log Copy"
    set theResults to every record of database "CPA FM Log Copy" whose field "ph" is "NG"
    set data field "ph" of every item of theResults to "Nice Going"
    set theResults to every record of database "CPA FM Log Copy" whose field "ph" is "EC"
    set data field "ph" of every item of theResults to "Everything Cool"
    end tell</pre>
    In this way you let Filemaker do the searching (which is what it's optimized for), and your script does the least work necessary.
    BTW, just so you know why your original script fails, it's because you say:
    <pre class=command>set data field "ph" of current record of database "CPA FM Log Copy" to "Nice Going"</pre>
    Note that you're always setting the 'current record'. This means that even if there are 1000 records in the database, you only ever set the first field. If you wanted to maintain the repeat approach this would have to change to something like:
    <pre class=command>set data field "ph" of record i of database "CPA FM Log Copy" to "Nice Going"</pre>
    so now it uses the loop iterator to track which record to change. An even better model that does use a scalar index is to do something like:
    <pre class=command>repeat with curRecord in every record of database "CPA FM Log Copy"
    if field "ph" of curRecord is "NG" then
    set data field "ph" of curRecord to "Nice Going"
    end if
    end repeat</pre>
    This nice thing about this model is that it uses FileMaker's internal references for records so that you know you're changing the right thing. This can be crucial if working in a multi-user database where there might be someone else is editing the data in parallel, changing theCount.

  • Applescript in Automator - Loops and Variables

    Hi to everyone!
    I'm trying to create an Automation with a Loop action in which workflow there is an Applescript Action too. What I need to do and I couldn't find anywhere on the net is how to make a variable increase in 1 each times it makes a loop. I will try to explain it again, in case it's not clear.
    First Action
    Applescript
    N=1
    Second Action
    Loop
    So each time it loops, the N variable increases 1 number. First loop, N=1, second loop N=2, third loop N=3 and so on.
    Any ideas.
    Thank you!

    well, it's easy enough to wrap a one-shot applescript in a repeat loop, but...
    the Get Text From Webpage action is not a script - it's a small cocoa plugin for automator.  There's no direct way to get webpages from applescript.  normally you use applescript to fetch them in Safari and then read the source from there.  however, if you want to do it directly you can use the following:
    set webpageText to do shell script "curl http://www.weppage.com"
    All together it would look something like:
    set webList to {"http://www.weppage1.com", "http://www.weppage2.com", "http://www.weppage3.com"}
    repeat with thisURL in webList
              set webpageText to do shell script "curl " & thisURL
      --process webpageText
    end repeat

  • How can if find the most repeated character and number ???

    Hi,
    I have a question. For instance, if we have a text file which contains:
    aaabbbhhhhhhtttttsjs12366
    How can i find the most repeated character and number. I have to add this code to the following program:
    I will aprreciate if you can help.
    Regards,
    Serkan
    import java.io.*;
    public class LineLen {
         public static void main(String args[]) throws Throwable {
              final String filename = "deneme1.txt";
              BufferedReader infile = new BufferedReader(new InputStreamReader(new FileInputStream(filename)));
              String line = infile.readLine();
              int linenum = 0;
              while (line != null) {
                   int len = line.length();
                   linenum++;
                   System.out.print(linenum + "\t");
                   for (int i = 0; i<len; i++)
                   System.out.print("*");
                   System.out.println("");
                   line = infile.readLine();
    }

    For a small alphabet like English, array migt be used:
    //in a for loop
    ++array[s.charAt(i)];For a big alphabet like chinese, HashMap might be barely used:
    map.put(s.charAt(i), increment(map.get(s.charAt(i))));
    // increment is a user defined method, possibly for an Integer object,
    // that returns a new Integer object

  • Looping and setting cfset values (from a query)

    Stuck on how to get this to work.
    How would I go about looping and setting these values instead
    of doing them individually?
    The query this <cfset> references works fine and will
    work but repeats...
    <cfset ans1 = (qryGetPcts1.q1Ct / qryGetCounts.qID2) *
    100>
    <cfset ans2 = (qryGetPcts2.q2Ct / qryGetCounts.qID2) *
    100>
    <cfset ans3 = (qryGetPcts3.q3Ct / qryGetCounts.qID2) *
    100>
    <cfset ans4 = (qryGetPcts4.q4Ct / qryGetCounts.qID2) *
    100>
    <cfset ans5 = (qryGetPcts5.q5Ct / qryGetCounts.qID2) *
    100>
    So I'd like to loop and set them all instead...
    <cfloop index="i" from="1" to="27">
    <cfset ans#i# = (qryGetPcts#i#.q#i#Ct /
    qryGetCounts.qID2) * 100>
    </cfloop>
    But it's responding with this...
    Invalid CFML construct found on line 196 at column 19.
    ColdFusion was looking at the following text:
    I'm sure I'm missing something simple b/c this must be
    possible? Can I use a cfset in a loop?
    Help is appreciated

    In the main everything is in CF is in a struct. Armed with
    this information you use array notation to help you.
    <cfloop index="iCount" from="1" to="27">
    <cfset variables["ans" & iCount] =
    (variables["qryGetPcts" & iCount]["q" & iCount & "Ct"]
    / qryGetCounts.qID2) * 100>
    </cfloop>

  • ListCellRenderer causing extra looping and slow down, please help

    Guys
    Please could you kindly help me with my long-lasting problem
    concerning ListCellRenderer.
    I sent it originally to Programming Essentials but no replies at all:
    http://forums.sun.com/thread.jspa?threadID=5388059&tstart=15
    Here is more detailed description of my problem that did not fit to my original posting (chech link above):
    For your convenience I made a special simplified version of my problem.
    Here are two fully compilable java-files that indicate my problem with simple GUI and System.out.print output. Please try to run my program, please.
    I try use ListCellRenderer and ListSelectionListener with a simple interactive list that contains four names, either male or female names, like:
    Bill
    James
    Martin
    Peter
    With a simple button "Change gender" the names can be changes to female names, and then again male names, etc...
    If you select THE FIRST NAME in the list and press "Change gender" button, the System.print.out shows unnecessarily repeating loops.These accumulating extra loops slow seriously down performance with long lists.
    Example output (the first name selected, so accumulating extra loops!!):
    Entering method ChangeGender
    ChengeGender method (name, index): Bill, 0
    Cell renderer (name, index): Bill, 0
    ChengeGender method (name, index): James, 1
    Cell renderer (name, index): Bill, 0
    Cell renderer (name, index): James, 1
    ChengeGender method (name, index): Martin, 2
    Cell renderer (name, index): Bill, 0
    Cell renderer (name, index): James, 1
    Cell renderer (name, index): Martin, 2
    ChengeGender method (name, index): Peter, 3
    Cell renderer (name, index): Bill, 0
    Cell renderer (name, index): James, 1
    Cell renderer (name, index): Martin, 2
    Cell renderer (name, index): Peter, 3
    Quitting method ChangeGender
    However, if you select OTHER NAMES THAN THE FIRST ONE (or no names at all) and press "Change gender", then no extra loops occur in System.out.print. Why?
    Example output (the second name selected, so no extra loops):
    Entering method ChangeGender
    ChengeGender method (name, index): Bill, 0
    ChengeGender method (name, index): James, 1
    ChengeGender method (name, index): Martin, 2
    ChengeGender method (name, index): Peter, 3
    Cell renderer (name, index): Bill, 0
    Cell renderer (name, index): James, 1
    Cell renderer (name, index): Martin, 2
    Cell renderer (name, index): Peter, 3
    Quitting method ChangeGender
    I will have list containing hundreds of names and therefore extra loops slow severely my application.
    Please explain how to avoid extra loops, also when the first name is selected.
    And please - if just possible - show me exactly which rows of my program must be rewritten and how.
    Thank you very much!

    Change
    for (int counter = 0 ; counter < names.length; counter++) {
        defaultListModel.addElement(names[counter]);
    }to
    ListDataListener[] listeners = defaultListModel.getListDataListeners();
    for(ListDataListener listener : listeners) {
        defaultListModel.removeListDataListener(listener);
    for (int counter = 0; counter < names.length; counter++) {
        defaultListModel.addElement(names[counter]);
    ListDataEvent evt = new ListDataEvent(defaultListModel,
            ListDataEvent.INTERVAL_ADDED,0,names.length-1);
    for(ListDataListener listener : listeners) {
        defaultListModel.addListDataListener(listener);
        listener.intervalAdded(evt);
    }

  • Interrupt repeat loops with buttons

    Hi,
    How do I make buttons available to the user while I run a repeat loop?
    I'm doing a shell script in the background and I'm using a repeat loop to read out the log of the results. Meanwhile, I want to have a Cancel button available to the user.
    The button however doesn't respond while the repeat loop runs, while the rest of my UI is in fact updating (based on the incoming log). I'm even using a one second delay at the beginning of the loop.
    I'm using AppleScript Studio in Xcode/Interface Builder.
    Thanks,
    JW

    1. Create a control in the window which has some sort of boolean property (if you are using a progress bar, then you already have one, since a progress bar can be indeterminate, and you can check this).
    2. Set the handler which shows the window (or alters the window when the process begins) to set this boolean property to a particular value
    3. Have the "Cancel" button handler invert the property
    4. Have the repeat loop check the property as part of its boolean condition (as in "repeat while x is true")
    Note that if the window is going to go away anyway when the process is complete, then you can use the window's title to indicate the status: set the title to "Cancelling..." and have the repeat loop check whether the title of the window is "Cancelling...".
    You could also just create a global within the script file, and have the repeat loop check the status of the global, but that tends to lead, sooner or later, to overlapping reuse of a single global value, which is a bug.

  • Since installing LTR 5.4, which I've now upgraded to 5.6, I've encountered repeated slowness and malfunctions in operations, especially when using the Compare View function and the Tab key to open and close the right and left side panels.  Such problems n

    Since installing LTR 5.4, which I've now upgraded to 5.6, I've encountered repeated slowness and malfunctions in operations, especially when using the Compare View function and the Tab key to open and close the right and left side panels.  Such problems never arose during two years of using LTR-4 and nothing else has changed on my computer.  I have a pretty simple system with only a few plug-ins, which are usually not in operation.  I have 12GB of RAM in my Windows 7 PC.  I could illustrate these problems with screen shots if you would tell me how to submit screen shots.  Otherwise I will try to describe the problems in words.
    The problem is clearly cumulative, growing worse as usage time passes.  Compare View feature gradually slows down and eventually seems to choke as my work session proceeds. If I Exit LTR and re-enter and start all over, things will work normally for maybe 30 minutes, but then the Compare View feature begins to become very slow to respond.   In a recent example with my screen full of thumbnails in Library mode I highlighted two images to compare. LTR started to open the Compare View screen by first having the top row of thumbnails disappear to be replaced by the "SELECT" and "CANDIDATE" words in their spaces  (but no images), but Compare View never succeeded in gaining control of the screen. After some seconds the top row of thumbnails reasserted its position and the Compare View windows disappeared. But LTR kept trying to bring them back. Again the top row of thumbnails would go away, Select and candidate would reappear, try again, and give up. This went on for at least 2-3 minutes before I tried to choose File and Exit, but even that did not initially want to respond. It doesn't like to accept other commands when it's trying to open Compare View. Finally it allowed me to exit.
    To experiment I created a new catalog of 1100 images.  After 30-40 minutes, the Compare View function began to operate very slowly. With left and right side panels visible and two thumbnails highlighted, hitting Compare View can take half a minute before the two mid-size  images open in their respective SELECT and CANDIDATE windows. When the side panels are open and two images are in the Select/Candidate spaces, hitting the Tab button to close the side panels produces a very delayed response--25-30 seconds to close them, a few more seconds to enlarge the two images to full size. To reverse the process (i.e., to recall the two side panels), hitting Tab would make the two sides of the screen go black for up to a minute, with no words visible. Eventually the info fields in the panels would open up.
    I also created a new user account and imported a folder of 160 images. After half an hour Compare View began mis-placing data.  (I have a screen shot to show this.)  CANDIDATE appears on the left side of SELECT, whereas it should be on the right. The accompanying camera exposure data appears almost entirely to the left of the mid-screen dividing line. Although the Candidate and Select headings were transposed, the image exposure data was not, but the data for the image on the right was almost entirely to the left of the line dividing the screen in two.
    Gurus in The Lightroom Forum have examined Task Manager data showing Processes running and Performance indicators and they see nothing wrong.  I could also send screen shots of this data.
    At this point, the only way I can process my images is to work 30-40 minutes and then shut down everything, exit, and re-start LTR.  This is not normal.  I hope you can find the cause, and then the solution.  If you would like to see my screen shots, tell me how to submit them.
    Ollie
    [email protected]

    Since installing LTR 5.4, which I've now upgraded to 5.6, I've encountered repeated slowness and malfunctions in operations, especially when using the Compare View function and the Tab key to open and close the right and left side panels.  Such problems never arose during two years of using LTR-4 and nothing else has changed on my computer.  I have a pretty simple system with only a few plug-ins, which are usually not in operation.  I have 12GB of RAM in my Windows 7 PC.  I could illustrate these problems with screen shots if you would tell me how to submit screen shots.  Otherwise I will try to describe the problems in words.
    The problem is clearly cumulative, growing worse as usage time passes.  Compare View feature gradually slows down and eventually seems to choke as my work session proceeds. If I Exit LTR and re-enter and start all over, things will work normally for maybe 30 minutes, but then the Compare View feature begins to become very slow to respond.   In a recent example with my screen full of thumbnails in Library mode I highlighted two images to compare. LTR started to open the Compare View screen by first having the top row of thumbnails disappear to be replaced by the "SELECT" and "CANDIDATE" words in their spaces  (but no images), but Compare View never succeeded in gaining control of the screen. After some seconds the top row of thumbnails reasserted its position and the Compare View windows disappeared. But LTR kept trying to bring them back. Again the top row of thumbnails would go away, Select and candidate would reappear, try again, and give up. This went on for at least 2-3 minutes before I tried to choose File and Exit, but even that did not initially want to respond. It doesn't like to accept other commands when it's trying to open Compare View. Finally it allowed me to exit.
    To experiment I created a new catalog of 1100 images.  After 30-40 minutes, the Compare View function began to operate very slowly. With left and right side panels visible and two thumbnails highlighted, hitting Compare View can take half a minute before the two mid-size  images open in their respective SELECT and CANDIDATE windows. When the side panels are open and two images are in the Select/Candidate spaces, hitting the Tab button to close the side panels produces a very delayed response--25-30 seconds to close them, a few more seconds to enlarge the two images to full size. To reverse the process (i.e., to recall the two side panels), hitting Tab would make the two sides of the screen go black for up to a minute, with no words visible. Eventually the info fields in the panels would open up.
    I also created a new user account and imported a folder of 160 images. After half an hour Compare View began mis-placing data.  (I have a screen shot to show this.)  CANDIDATE appears on the left side of SELECT, whereas it should be on the right. The accompanying camera exposure data appears almost entirely to the left of the mid-screen dividing line. Although the Candidate and Select headings were transposed, the image exposure data was not, but the data for the image on the right was almost entirely to the left of the line dividing the screen in two.
    Gurus in The Lightroom Forum have examined Task Manager data showing Processes running and Performance indicators and they see nothing wrong.  I could also send screen shots of this data.
    At this point, the only way I can process my images is to work 30-40 minutes and then shut down everything, exit, and re-start LTR.  This is not normal.  I hope you can find the cause, and then the solution.  If you would like to see my screen shots, tell me how to submit them.
    Ollie
    [email protected]

  • Why cant we use sy-index in loop and endloop?where exactly we used sy-index

    hi
    can u help me for this

    Hi...
    Genereally Sy-index is used in iterative cases like
    while....endwhile
    and
    Do.... Enddo
    In LOOP ..... Endloop.... We should use SY-TABIX....
    It would be more consistent we use sy-tabix as we loop at internal table so this SY-TABIX points to the current record its reading...
    we can use sy-index but rarely depends on condition.....
    SY-INDEX and SY-TABIX will not be same always in LOOP and ENDLOOP
    Rewards points if satisfied..
    Regards
    Narin Nandivada

Maybe you are looking for