The demand of my application is that i can not replace for loop with a while loop.because i need fixed number of iterations and as far as i know fixed iterations could be only with possible with the for loop.

the demand of my application is that i can not replace for loop with a while loop.because i need fixed number of iterations and as far as i know fixed iterations could be only with possible with the for loop.
your recommended second option that i could add true/false case.
this true/false case must be inside the for loop or outside the for loop?if this case is inside the for
loop, how can i send stop command from outer while
loop?
more over do you have any example for this please?
thanks"

You can execute a fixed number of iterations using a while loop by comparing the iteration count to the number of iterations you want and wiring the output of that comparison (e.g. Less Than or Equal To) to the continue (or stop) terminal of your while loop. Which comparison you use depends on personal preference, where you wire the desired count and the interation count, and whether you're using the while loop as Continue if True or Stop if True.
Ben gave you step-by-step instructions in response to your previous question. Look here for Ben's response.
Ben's response looks pretty good and detailed to me. It certa
inly deserved better than a 1-star rating.

Similar Messages

  • I have tried to install the upgrade to iTunes on my Windows XP system. It tells me that I have an older version of Bonjour on my system and that it can not remove it. I have also tried to uninstall what is on my system and it will not uninstall! Help?

    I have an older version of iTunes on my system. I have tried to install the upgrade and it talls me that I have an older version of Bonjour and that it can not remove it. I have also tried to uninstall what is on my system and it will not do it. Help?

    Download the Windows Installer CleanUp utility from the following page (use one of the links under the "DOWNLOAD LOCATIONS" thingy on the Major Geeks page):
    http://majorgeeks.com/download.php?det=4459
    To install the utility, doubleclick the msicuu2.exe file you downloaded.
    Now run the utility ("Start > All Programs > Windows Install Clean Up"). In the list of programs that appears in CleanUp, select any Bonjour entries and click "Remove", as per the following screenshot:
    Quit out of CleanUp, restart the PC and try another install. Does it go through this time?

  • I downloaded Lion OSX and at the end I received a notice that Safari can not connect to Server. All internet connections work including Safari on other user on same computer. I downloaded 13items and installed only 12. What do I do now ?

    I dowloaded Lion OSX and installed. I downloaded 13 iitems and installed only 12. At the end of the insta;;ation I received a notice thst Safart can not connect to Server. Safari does not work on user where installation was made. It work on other user. All internet connections work including google. If I go into Safari the blue line goes up to end of "http" on adress and freezes. Where do I go from here.:::???

    Hi There Linc Davis,
    Wow, you are the best.
    Yip this is what the website looks like. Great job Linc Davis.
    Not surprised that the "Shop" tab is missing. Darn.
    Well can you try to access it's "sister" website: astralmusic.com and astralmusicshop.com?
    Since you are awesome with the "Flash" can you investigate if this website has a issue withis this "Flash" too?
    Please Linc Davis

  • I have a 13.5 month old Ipad2, wifi only that has had problems with wifi com from the beginning. I am learning that this is not unusual for apple. Any suggestions?

    I have a 13.5 month old Ipad2, wifi only that has had problems with wifi com from the beginning. I am learning that this is not unusual for apple. Any suggestions?
    ronald1094

    Try #5.
    Some things to try first:
    1. Turn Off your iPad. Then turn Off (disconnect power cord for 30 seconds or longer) the wireless router & then back On. Now boot your iPad. Hopefully it will see the WiFi.
    2. Go to Settings>Wi-Fi and turn Off. Then while at Settings>Wi-Fi, turn back On and chose a Network.
    3. Change the channel on your wireless router (Auto or Channel 6 is best). Instructions at http://macintoshhowto.com/advanced/how-to-get-a-good-range-on-your-wireless-netw ork.html
    4. Go into your router security settings and change from WEP to WPA with AES.
    5.  Renew IP Address: (especially if you are droping internet connection)
        •    Launch Settings app
        •    Tap on Wi-Fi
        •    Tap on the blue arrow of the Wi-Fi network that you connect to from the list
        •    In the window that opens, tap on the Renew Lease button
    ~~~~~~~~~~~~~~~~~~~~~~~~~
    iOS 6 Wifi Problems/Fixes
    How To: Workaround iPad Wi-Fi Issues
    http://www.theipadfan.com/workaround-ipad-wifi-issues/
    Another Fix For iOS 6 WiFi Problems
    http://tabletcrunch.com/2012/10/27/fix-ios-6-wifi-problems-ssid/
    Wifi Doesn't Connect After Waking From Sleep - Sometimes increasing screen brightness prevents the failure to reconnect after waking from sleep. According to Apple, “If brightness is at lowest level, increase it by moving the slider to the right and set auto brightness to off.”
    Fix For iOS 6 WiFi Problems?
    http://tabletcrunch.com/2012/09/27/fix-ios-6-wifi-problems/
    Did iOS 6 Screw Your Wi-Fi? Here’s How to Fix It
    http://gizmodo.com/5944761/does-ios-6-have-a-wi+fi-bug
    How To Fix Wi-Fi Connectivity Issue After Upgrading To iOS 6
    http://www.iphonehacks.com/2012/09/fix-wi-fi-connectivity-issue-after-upgrading- to-ios-6.html
    iOS 6 iPad 3 wi-fi "connection fix" for netgear router
    http://www.youtube.com/watch?v=XsWS4ha-dn0
    Apple's iOS 6 Wi-Fi problems
    http://www.zdnet.com/apples-ios-6-wi-fi-problems-linger-on-7000004799/
    ~~~~~~~~~~~~~~~~~~~~~~~
    How to Fix a Poor Wi-Fi Signal on Your iPad
    http://ipad.about.com/od/iPad_Troubleshooting/a/How-To-Fix-A-Poor-Wi-Fi-Signal-O n-Your-iPad.htm
    iOS Troubleshooting Wi-Fi networks and connections  http://support.apple.com/kb/TS1398
    iPad: Issues connecting to Wi-Fi networks  http://support.apple.com/kb/ts3304
    WiFi Connecting/Troubleshooting http://www.apple.com/support/ipad/wifi/
    How to Fix: My iPad Won't Connect to WiFi
    http://ipad.about.com/od/iPad_Troubleshooting/ss/How-To-Fix-My-Ipad-Wont-Connect -To-Wi-Fi.htm
    iOS: Connecting to the Internet http://support.apple.com/kb/HT1695
    iOS: Recommended settings for Wi-Fi routers and access points  http://support.apple.com/kb/HT4199
    How to Quickly Fix iPad 3 Wi-Fi Reception Problems
    http://osxdaily.com/2012/03/21/fix-new-ipad-3-wi-fi-reception-problems/
    iPad Wi-Fi Problems: Comprehensive List of Fixes
    http://appletoolbox.com/2010/04/ipad-wi-fi-problems-comprehensive-list-of-fixes/
    Connect iPad to Wi-Fi (with troubleshooting info)
    http://thehowto.wikidot.com/wifi-connect-ipad
    Fix iPad Wifi Connection and Signal Issues  http://www.youtube.com/watch?v=uwWtIG5jUxE
    Fix Slow WiFi Issue https://discussions.apple.com/thread/2398063?start=60&tstart=0
    How To Fix iPhone, iPad, iPod Touch Wi-Fi Connectivity Issue http://tinyurl.com/7nvxbmz
    Unable to Connect After iOS Update - saw this solution on another post.
    https://discussions.apple.com/thread/4010130
    Note - When troubleshooting wifi connection problems, don't hold your iPad by hand. There have been a few reports that holding the iPad by hand, seems to attenuate the wifi signal.
    ~~~~~~~~~~~~~~~
    If any of the above solutions work, please post back what solved your problem. It will help others with the same problem.
     Cheers, Tom

  • I have an hardware issue with my iphone 5 64gb. its lock button in not working. for a fact i know that it can be replaced but my question is this that do they require the bill or anything to replace or they only require the phone in usa

    i have an hardware issue with my iphone 5 64gb. its lock button in not working. for a fact i know that it can be replaced but my question is this that do they require the bill or anything to replace or they only require the phone in usa

    Warranty and support is only valid in the country of origin.  The only exception being the EU where a device bought in any EU country can get warranty or service in any EU country.
    Warranty is determined by device (serial number), no documentation required.
    Apple does not repair devices, they replace them.  For that reason, ensure the device is backed up and any pictures take with the device are copied off the device prior to going in for service.

  • HT204409 I am unable to connect to my Wi-Fi at home, but am able to connect at work.  Using my new iPad 4G with cellular and a Motorola SBG6580.  My iPad 3G Wi-Fi only connects just fine; the 4G just "spins the gear."

    I am unable to connect to my Wi-Fi at home, but am able to connect at work.  Using my new iPad 4G with cellular and a Motorola SBG6580.  My iPad 3G Wi-Fi only connects just fine; the 4G just "spins the gear."

    Some things to try first:
    1. Turn Off your iPad. Then turn Off (disconnect power cord for 30 seconds or longer) the wireless router & then back On. Now boot your iPad. Hopefully it will see the WiFi.
    2. Go to Settings>Wi-Fi and turn Off. Then while at Settings>Wi-Fi, turn back On and chose a Network.
    3. Change the channel on your wireless router (Auto or Channel 6 is best). Instructions at http://macintoshhowto.com/advanced/how-to-get-a-good-range-on-your-wireless-netw ork.html
    4. Go into your router security settings and change from WEP to WPA with AES.
    5.  Renew IP Address: (especially if you are droping internet connection)
        •    Launch Settings app
        •    Tap on Wi-Fi
        •    Tap on the blue arrow of the Wi-Fi network that you connect to from the list
        •    In the window that opens, tap on the Renew Lease button
    ~~~~~~~~~~~~~~~~~~~~~~~~~
    iOS 6 Wifi Problems/Fixes
    Fix For iOS 6 WiFi Problems?
    http://tabletcrunch.com/2012/09/27/fix-ios-6-wifi-problems/
    Did iOS 6 Screw Your Wi-Fi? Here’s How to Fix It
    http://gizmodo.com/5944761/does-ios-6-have-a-wi+fi-bug
    How To Fix Wi-Fi Connectivity Issue After Upgrading To iOS 6
    http://www.iphonehacks.com/2012/09/fix-wi-fi-connectivity-issue-after-upgrading- to-ios-6.html
    iOS 6 iPad 3 wi-fi "connection fix" for netgear router
    http://www.youtube.com/watch?v=XsWS4ha-dn0
    Apple's iOS 6 Wi-Fi problems
    http://www.zdnet.com/apples-ios-6-wi-fi-problems-linger-on-7000004799/
    ~~~~~~~~~~~~~~~~~~~~~~~
    Look at iOS Troubleshooting Wi-Fi networks and connections  http://support.apple.com/kb/TS1398
    iPad: Issues connecting to Wi-Fi networks  http://support.apple.com/kb/ts3304
    WiFi Connecting/Troubleshooting http://www.apple.com/support/ipad/wifi/
    How to Fix: My iPad Won't Connect to WiFi
    http://ipad.about.com/od/iPad_Troubleshooting/ss/How-To-Fix-My-Ipad-Wont-Connect -To-Wi-Fi.htm
    iOS: Connecting to the Internet http://support.apple.com/kb/HT1695
    iOS: Recommended settings for Wi-Fi routers and access points  http://support.apple.com/kb/HT4199
    How to Quickly Fix iPad 3 Wi-Fi Reception Problems
    http://osxdaily.com/2012/03/21/fix-new-ipad-3-wi-fi-reception-problems/
    iPad Wi-Fi Problems: Comprehensive List of Fixes
    http://appletoolbox.com/2010/04/ipad-wi-fi-problems-comprehensive-list-of-fixes/
    Fix iPad Wifi Connection and Signal Issues  http://www.youtube.com/watch?v=uwWtIG5jUxE
    Fix Slow WiFi Issue https://discussions.apple.com/thread/2398063?start=60&tstart=0
    How To Fix iPhone, iPad, iPod Touch Wi-Fi Connectivity Issue http://tinyurl.com/7nvxbmz
    Unable to Connect After iOS Update - saw this solution on another post.
    https://discussions.apple.com/thread/4010130
    Note - When troubleshooting wifi connection problems, don't hold your iPad by hand. There have been a few reports that holding the iPad by hand, seems to attenuate the wifi signal.
    ~~~~~~~~~~~~~~~
    If any of the above solutions work, please post back what solved your problem. It will help others with the same problem.
     Cheers, Tom

  • AVG tried to take over the Firefox Program. I unchecked some stuff on AVG and now Firefox doesn't lool right. There is only a bar at the top of the page with "Firefox" and "new Tab" . How do I get the Firebox homepage back?

    AVG tried to take over the Firefox Program. I unchecked some stuff on AVG and now Firefox doesn't look right. There is only a bar at the top of the page with "Firefox" and "new Tab" . How do I get the Firebox homepage back?

    Google Toolbar Options, in the Search tab, make sure that '''Enable the Google new tab page''' is check-marked. If that doesn't fix it for you, see this for support information about the Google Toolbar. <br />
    [http://www.google.com/support/toolbar/?hl=en] <br />
    Or visit the Google Toolbar forum. <br />
    [http://www.google.com/support/forum/p/Toolbar?hl=en]
    As far as your UserAgent showing Firefox 3.0.11, see this: <br />
    https://support.mozilla.com/en-US/kb/Websites+or+add-ons+incorrectly+report+incompatible+browser
    You might want to consider getting rid of that '''desktopsmiley''' program that has messed up your UserAgent, it is known as Malware.

  • My problem is a sudden loss of ability to get to PSE12 Organizer when I tried to load a saved scan. Had been using the Organizer and the Editor with no problems for several hours just before that.     Can not load the Organizer from the icon at the bottom

    My problem is a sudden loss of ability to get to PSE12 Organizer when I tried to load a saved scan. Had been using the Organizer and the Editor with no problems for several hours just before that.  
    Can not load the Organizer from the icon at the bottom of  Editor screen, from the icon on the MacBook Air dock (OS 10.10.2),  nor from the file in applications located with Finder.
    I have tried without success to access Organizer after turning off and on the scanner, turning off and on the computer, loading a fresh copy of PSE12 from the CD, and restoring default preferences.  I have searched on line for other options but not  found any. 
    Can you help me?

    Not Charge
    - See:    
    iPod touch: Hardware troubleshooting
    iPhone and iPod touch: Charging the battery
    - Try another cable. The cable for 5G iPod (lightning connector) seems to be more prone to failure than the older cable.
    - If a 5G iPod               
    Iphone 5 lightning port charging problem - SOLUTION!
    - Try another charging source
    - Inspect the dock connector on the iPod for bent or missing contacts, foreign material, corroded contacts, broken, missing or cracked plastic.
    - Make an appointment at the Genius Bar of an Apple store.
      Apple Retail Store - Genius Bar

  • I have problem with buying in games , I got the massage that the purchased can not be completed , please contact iTunes support.. I need help for my case please

    I have problem with buying in games , I got the massage that the purchased can not be completed , please contact iTunes support.. I need help for my case please

    http://www.apple.com/support/itunes/contact/

  • Every time I sync my iPhone with iPhoto I end up getting duplicate photos on my iPhone. The other problem is that I can not delete the dups on my iPhone.   Does anyone have an answer to this problem?

    Every time I sync my iPhone with iPhoto I end up getting duplicate photos on my iPhone. The other problem is that I can not delete the dups on my iPhone.   Does anyone have an answer to this problem?

    Mike whether I create a folder within the Pictures Folder that iTunes uses to sync photographs or just copy them into the main folder the result is the same, I end up with Photo Library plus another album containing an identical set of pictures as contained in Photo Library.
    The User Manual for iOS5 states ...
    You can create, rename, and delete albums on iPhone to help you organize your photos and videos.
    Create a album: When viewing albums, tap Edit, then tap Add. Select photos to add to the new album, then tap Done. Note: Albums created on iPhone aren’t synced back to your computer.
    Rename an album Tap Edit, then select an album.
    Rearrange albums Tap Edit, then drag up or down.
    Delete an album Tap Edit, then tap the delete sign.
    Yes I can Add a new Album, but cannot delete an album already created. The delete sign does not appear.
    In iTunes the only folder that I can see listed is the man one into which iTunes stores pictures, which I have named iPhone Photos.
    When I look on my PC this iPhone Photos folder contains another folder named iPod Photo Cache and a multitude of folders created by iTunes, the named F00, F01,F02 etc etc. and a Photo Database file.
    Now whether I create a seperate folder within iPhone Photos to store my favourite photos in, or just copy them all into the iPhone Photos folder without being encased within another folder, or create a folder inside the iPod Photo Cache folder the result is the same ...
    I end up with Photo Library plus another album containing an identical set of pictures as contained in Photo Library.
    I am going around in ever decreasing circles here and getting nowhere fast!! 

  • I can no longer download and save files. They are now saved with a ".part" suffix that I can not use or open. What happened, I used to do this all the time?

    Downloads seem to be happening normally at first but the file shows up with a file extension of ".part" that I can not use or open. If I refresh the folder where it was downloaded to, it disappears as though it wasn't there at all.
    I used to do this and it just yesterday started to give me problems. It doesn't seem to matter what file type I do this with as PDF, MP3 and EXE files have all shown this problem.
    Please help!

    It is possible that your anti-virus software is corrupting the downloaded files or otherwise interfering with downloading files by Firefox.<br />
    Try to disable the real-time (live) scanning of files in your anti-virus software temporarily to see if that makes downloading work.
    See also "Disable virus scanning in Firefox preferences - Windows"
    * http://kb.mozillazine.org/Unable_to_save_or_download_files

  • TS3694 my iphone 4s said it needed updating to ios7.2 and so far its displaying the itunes logo and saying plug into itunes so i tried updating with itunes and it keeps saying it has failed (3194)

    my iphone 4s said it needed updating to ios7.2 and so far its displaying the itunes logo and saying plug into itunes so i tried updating with itunes and it keeps saying it has failed (3194)

    Hello Amz_Bajwa,
    Thanks for using Apple Support Communities.
    For more information on this, take a look at:
    iTunes: Specific update-and-restore error messages and advanced troubleshooting
    http://support.apple.com/kb/TS3694#error3194
    Unable to contact the iOS software update server gs.apple.com
    Error 1004, 1013, 1638, 3014, 3194: These errors may be the result of the connection to gs.apple.com being redirected or blocked. Follow these steps to resolve these errors:
    Install the latest version of iTunes.
    Check security software and ensure that communication to gs.apple.com is allowed. Follow these stepsfor assistance with security software.
    Check the hosts file. The restore will fail if there is an active entry to redirect gs.apple.com. Follow theadvanced iTunes Store troubleshooting steps to edit the hosts file or revert to a default hosts file. See "Blocked by configuration: (Mac OS X/Windows) > Rebuild network information."
    Try to restore from another known-good computer and network.
    If the errors persist on another computer, the device may need service.
    Best of luck,
    Mario

  • I gave my ipad 2 to my brother last month. After that he erased all content and settings, sign in with his apple id. The next day until now, I found out that I can not udpate my apps both on my iPhone and iPad Air. What should I do? Thank you in advance.

    I gave my ipad 2 to my brother last month. After that he erased all content and settings, sign in with his apple id. The next day until now, I found out that I can not udpate my apps both on my iPhone and iPad Air. I had create new apple id, change my password, delete the icloud acc. But still I can not update my apps. I have many of red notifications on iPhone and iPad Air. What should I do? Thank you in advance.

    1. It is never a good idea to include personal info like your email address or Apple ID in a post on an open forum.
    2. The email you received DOES NOT say your Apple ID cannot be used to unlock this iPad. The email informs you that your Apple ID was used to unlock an iPad. Fortunately the iPad is yours. The message confirms that. If your Apple ID was used to unlock an iPad that was not yours your would then know to change your password. Since the iPad is yours you do not need to change your password.
    Is your iPad working?

  • My friend bought an ipad mini and gave me his old iPad. how can i re-register the iPad in my name so that i can sync it with my macbook air?

    My friend bought an ipad mini and gave me his old iPad. how can i re-register the iPad in my name so that i can sync it with my macbook air?

    Setup as new
    Settings>General>Reset>Erase all content and settings

  • HT201263 When my Ipod touch is in autolock I can only restart the device holding the sleep/wake button and home button at the same time for 10 seconds.  While in auto-lock it is using battery power and will do so until the battery is drained.  Whats wrong

    When my Ipod touch is in autolock I can only restart the device holding the sleep/wake button and home button at the same time for 10 seconds.  While in auto-lock it is using battery power and will do so until the battery is drained.  Whats wrong?

    - Try a reset. Nothing is lost:
    Reset iPod touch: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears
    - Connect the iPod to your computer and try to restore via iTunes. Try placing in Recovery mode if necessary to restore.
    - If you can't turn the iPod completely off, let the batter fully drain. After charging for at lerast anhour try again
    - If still not successful time for an appointment at the Genius Bar of an Apple store since it appears you have a hardware problem.

Maybe you are looking for

  • Strangeness in Sample Editor / Arrange

    I have an audio file (aif) in my bin. I drag it to the arrange page. It plays fine. I can make edits, create regions, everything one could want. I double click on the region and the Sample Editor opens but with the wrong file - something I had open b

  • Uninstall TMG Packet Filter

    Hello, After removing TMG 2010 from a Windows 2008 R2 server, the following TMG Packet filter was left behind and the "uninstall" option is greyed out. How can I uninstall this?  Any ideas greatly appreciated...  (see image below)... Brett B

  • Where is libstreamanalyzer.so.0 ??

    On kde4, I had some libraries missing. Probably I made some error, but I cant retrace it back. I could reinstall all of them, except  'libstreamanalyzer.so.0'. When I run Kmail, konsole, kopete I get: kmail: error while loading shared libraries: libs

  • I have a sugestion to Apple,Why they not build Imac's also with Retina Display.

    Dear Apple friends,i'm not Steve Jobs but i have a big sugestion to Apple. Why they do not build also I'macs with Retina display?. Is i't to expensive for Apple to do that?,or is i't at the moment impossible with the Technics in the Apple factory?. M

  • Outline load error

    Hi All I am tring to extract the dimension structure through oulineload utility. And getting below error. This was working fine till recent past. What could be the possible cause?. I use admin to extract the structure as below OutlineLoad.cmd /A:TEST