Re: Coin Flip (Python Newbie) Programming Software Development by jassonadder … that you're using the variable timesflipped in your while loop, but it was never initialized. Because of that, the… loop never runs properly, and your counters don't change. Here'… Re: Hi everyone, I'm David with SayItOnTheWeb Community Center Say Hello! by Dani … suggest that, instead, you use a vector animation in a loop that can provide the same desired effect, as opposed to… Re: Create Infinite Loop In Bash Hardware and Software Linux and Unix by Vince_6 Be Careful what you wish for. When I was first using Unix one of our programmers wrote a Bash script something like: While 1 Do Something He eventually overloaded the system and it crashed. Re: Create Infinite Loop In Bash Hardware and Software Linux and Unix by asadalikhan while true; do echo "Running..."; sleep 60; done This runs forever, printing "Running..." every 60 seconds. No script file needed, just drop it in the terminal and you're good. Re: How to open an Excel Document in VB.NET Programming Software Development by PitSterw I've worked on something similar and found that using Microsoft.Office.Interop.Excel lets you open the file and loop through cells easily. Re: Is linux your daily driver? Hardware and Software Linux and Unix by Vince_6 I used Linux on and off for years. I was finally willing to commit to Windows 11 when it installed some updates and it went into a reboot loop afterwards. I said screw it and went back to Linux. Been using it for months as my primary OS and I am quite happy with the decision. loop through javascript show and hide div Digital Media UI / UX Design by lakshmi_suchi loop through javascript show and hide div Re: Loop Programming Software Development by lolafuertes …(cellName, cellName)[/ICODE]. In order exit timely from the loop you need to know the number of filled rows before…like [ICODE]textbox1.Text="";[/ICODE] ad, inside the loop you can add the contents using [ICODE]textBox1.Text += …n", excelPartNumber.Value2);[/ICODE]. Where to put the loop? I wil suggest to put it in the line 15… Loop help Programming Web Development by phillman17 … one product in the shopping cart, I set the first loop to loop through the products in the cart (one table in… the DB), and within that loop I loop again to pull each associated product (from the associated product… Loop help Programming Software Development by IrishUpstart …slices that it should use, going through a loop until it finds the change small enought to … blank on how to start it for the loop. Edit: This is what I have for … have it set up right to include the loop that I need. Also, for N, I… 25 and bump it up by 25 through each loop.... [ICODE]double myfunction(double) ; double integrate(double… Re: Loop? Programming Software Development by tux4life …[B]do-while[/B] ; examples: [CODE=Java] /* This loop executes if condition is (evaluated to) true*/ while(condition) { …// your code here } [/CODE] [CODE=Java] /* This loop will run at least one time, and executes as long… code here } while(expression); [/CODE] [CODE=Java] /* This loop will run 10 times */ for(i=0; i<=10… loop help Programming Web Development by MDanz … to display , when i'm trying to loop this i am using a while loop, but i keep on having to use… another while loop inside, just to match the boxid with previous id to … practice. is there a better way to do this? for loop? another example [quote]e.g. box 1 has id 239… Re: loop help Programming Web Development by kekkaishi …; while($x = true){ //use a boolean to continue loop $sql = mysql_query("SELECT * FROM blocks WHERE id=…the boxes. so make $x false and break the loop. break; }else{ $row = mysql_fetch_array($res); echo …']; //always updating $bid so that when the loop starts again $bid is a new one and … loop Programming Software Development by newbieha Hello I want to write a loop that quit the loop if the user hits Enter or there is negative number.… is what i have so far. it only quits the loop if user enter characters. [CODE] import java.util.Scanner; …import java.util.ArrayList; public class loop { public static void main(String[] args) { System.out.println(&… Re: loop while Programming Software Development by ddanbe … always equal to [B]1[/B]. You must change your loop variable in some way, in order to finish your… loop. Mostly this is done by adding [B]1[/B] like …]i = i +1;[/B] or[B] i++; [/B]in your loop. [B]J[/B] and [B]k[/B] are variables that…]j=0[/B] and [B]k=-1[/B] and your loop never stops. Loop help and such. Programming Software Development by A Tripolation … and echoes them to the screen. You must use a loop. Think about how it will be controlled. # Then add in… the user should happen after (outside) the end of the loop, not during the input phase. The user is not interested… anyone tell me why I'm supposed to use a loop? And what flags are? We haven't gone over any… Re: loop Programming Software Development by حسنين_1 first inner loop execute then outer loop execute when inner loop condition false then return outer loop. when outer loop condtion false Re: loop help Programming Software Development by ndeniche … really wondering how does that work in the loop it kinda hard for me 2 picture it[/…will work EXACTLY THE SAME inside or outside any loop... so, y you have a "sum"…; variable created out of the loop and an assigned value of 0... (if you… do is [code]sum+=save[/code] inside the loop just as Narue had pointed out several (many, … Re: Loop help Programming Web Development by SheSaidImaPregy Depends on how your database is set up, but you could add "DISTINCT" to your SQL query. By this, it only grabs unique names. "SELECT DISTINCT productname FROM blablah" Otherwise, you should do a grab on both tables at once, then loop through and put into two columns. Re: Loop help Programming Software Development by Aia >Also, for N, I want to start at 25 and bump it up by 25 through each loop... If I understand correctly. [CODE]for (i = [COLOR="Red"]25[/COLOR] ; i < N ; [COLOR="Red"]i += 25[/COLOR] )[/CODE] You are not returning the final result of sum. Re: loop help Programming Software Development by finito a loop within a loop. You are asking it to loop chars + 256 + (256 * 192) which is chars+49408; of course it's gonna take its time Re: Loop Programming Software Development by Fbody …starters, you need to actually create a loop. You don't have any loop structure in this code. Just remember, …needs to be within the statement block controlled by the loop.[CODE] void someFunction() { //any code here will only…for loops. This example only shows the standard while loop. [URL="http://www.cplusplus.com/doc/tutorial/… Re: loop Programming Software Development by jon.kiparsky Problem #1 - you don't want to make a new Scanner each time through the loop. No need. Get rid of that line. Problem # 2 - you want to break on a negative number? In that case, check the value of that sc.nextInt() call, and if it's negative, do a break. Re: loop Programming Software Development by newbieha …] import java.util.Scanner import java.util.ArrayList; public class loop { public static void main(String[] args) { System.out.println("… Re: loop Programming Software Development by newbieha Thanks Jon. It works fine now. If I want to quit the loop if the user just hits Enter. do i just add another else if statement? Re: Loop help Programming Software Development by Taywin You are on the right track. You just need to reverse how your loop goes. Look at your inner loop. [CODE] for (int c = 1; c <= size; c++) [/CODE] If you reverse it from [B]incremental[/B] loop value to [B]decremental[/B] loop value with the range from (size-1) to 0 (inclusive), you should get the result you want. Loop help Programming Software Development by muhaa … seam to figure it out i was guna use a loop and just make the program start over and over again… printf("Error!");//Im trying to get this to loop till conection is found InternetCloseHandle(iConnect); InternetCloseHandle(iSession); return 0… Re: loop help Programming Software Development by Narue … i was really wondering how does that work in the loop it kinda hard for me 2 picture it Just change… is a running total starting at zero, so if the loop has four iterations and save is set to 1, 2…, respectively, those values are added to sum and after the loop, sum is 10. loop Programming Software Development by deftones … problem is that every time I try to use Do...Loop statement, my program becomes "hung". Or even when… CommandButton and press it few times manually (acting as Do..Loop) everything's OK. Any ideas what could be wrong? Or… Re: loop Programming Software Development by Jx_Man use DoEvents inside the loop. Calling DoEvents in your code will handle the other events [CODE]Do ... DoEvents .... Loop[/CODE]