A while loop is a control structure used in many languages to loop over a set of instructions as long as a particular condition is met.

learn more… | top users | synonyms (2)

1
vote
0answers
66 views

While loop + switch

I can't figure this out I keep getting stuck in a loop. I don't know if I have my calculation or if statements in the right areas, please I could use some help. My output is like a end of day report. ...
1
vote
0answers
37 views

PHP while loop array return

I try to implement something like: $data = my_obj::get_rows(); $data is now a PDO Statement, my_obj is my class ( i have one for every db table ), implements __set and __get magic get_rows() is a ...
1
vote
0answers
16 views

Using while loop with queryxml

I Querying a database using query xml to a API, the problem is I am wanting to return over 5,000 results and the limit using this API is 500 per query. I have been told to track the ID and use this in ...
1
vote
0answers
18 views

MySQL while cycle not working

I have this code into a procedure: declare counter int unsigned; declare amount int unsigned; set counter := 0; set amount := 3; while counter <> amount do set counter := counter + 1; ...
1
vote
0answers
28 views

how can i count the working days of an employee generating 1 2..31 days and the time will only appear to those days using vb.net

Dim cmd As OdbcCommand = New OdbcCommand("SELECT distinct checktime,format(CHECKTIME,'Short Date') as adlaws, format(CHECKTIME,'ampm') as formatz,checktype " & _ ...
1
vote
0answers
107 views

reduce CPU usage in while loop

How do you limit the CPU of a while loop? (cpu usage 100%) In this case, the code which is inside the while loop: Sub start() listenerThread = New Thread(AddressOf Listen) ...
1
vote
0answers
99 views

Stuck in while loop with BufferedReader-java

I'm completely at a lose for why this isn't working. I've had similar loops before and they've worked fine. try{ text = new BufferedReader(new FileReader(fileName)); while ((lineOfText = ...
1
vote
0answers
217 views

set 2 while loop with CSV files in Jmeter

I want to add 2 while loop in my Jmeter project with 2 CSV DataSet Config items like this: While Loop condition: ${__javaScript("${var1}"!="<EOF>")} CSVDataSetConfig variables: var1 - ...
1
vote
0answers
107 views

Left Join tables on column sum to column value

I have two tables; SamplesTbl that contains samples every 5 seconds of a bike ride, and a RxTbl that contains the prescribed stages and other values of a bike ride: SamplesTbl ( SamplesID int ...
1
vote
0answers
139 views

Using While Loop after button press to search a multidimensional array for a value

I am relatively new to making applications for an Android phone and there is a problem that I have been trying to solve for the past week. What I am trying to do is take in 4 variables, 3 of which is ...
1
vote
0answers
126 views

What can make the eclipse debugger to skip a 'while' content to the break of the 'default' of an inner switch?

Within a java project I have the following code: public static <return> method(<parameters>){ 1 <any method call> 2 while( <conditions> ){ 3 <any method call> ...
1
vote
0answers
278 views

create dynamic imagebuttons in a while loop and fire their events without using gridview

I'm trying to do these: access my site's contents and read theme from my data base dynamically create a table without using grid-view and dynamically generate Image Buttons in it to edit and delete ...
1
vote
0answers
334 views

php mssql while loop

I have an unusual issue with my while loop, here is the code: $link = mssql_connect($myServer, $myUser, $myPass); if (!$link || !mssql_select_db($myDB, $link)) { die('Unable to connect or ...
1
vote
0answers
92 views

Show 3 blog entries followed by 3 photos, then 3 blog entries, then 3 photos

quite new to PHP and I'm trying to get my page to show 3 blog entries, followed by 3 photos, followed by another 3 blog entries and so on and soforth. I've been recommended using do while loops but ...
1
vote
0answers
148 views

R using a while loop to find number of timesteps

I need to find how many timesteps my equation will run to until the population becomes extinct (N=0). I am pretty sure this will not happen since I am using the equation for geometric growth. ...

1 2 3 4 5 30
15 30 50 per page