Questions tagged as 'loop'

3
answers

Receive Json array and insert into a loop with HTML

Good evening, I'm using phonegap to make an application and then the following problem occurred: I have this HTML code: <div class="content"> <article class="underline"> <a href="incidente.html"><img id="inc...
asked by 09.11.2015 / 04:14
1
answer

With loop use columns in objects in R

Hello, I have created more than 8 thousand dataframes in R. However, when trying to loop in one of the columns of each object, I always have the answers that the function used does not read non-numeric objects. How do I fix this? for(i in 10:13...
asked by 19.04.2018 / 16:37
1
answer

How to join two tables using auxiliary table and LINQ

I have the People and Representatives tables, where in my application the person may or may not have representative (s). public class Conta { int PessoaID; string Nome; String Documento; } public class Representante { int Rep...
asked by 05.10.2017 / 20:16
1
answer

How to calculate 2 ^ n and (2 ^ n) +1 in java?

I'm doing a job where I have to do some calculations with batteries and I need to do tests for two powers and two powers plus two, ie 1, 2, 3, 5, 8, 9, 16, 17 , etc. The power part of two is done easily, but how do I loop or cycle the powers...
asked by 13.04.2017 / 14:53
1
answer

I'm not understanding loops while nested

I'm having trouble understanding this code, because I do not understand how it behaves in 'while' loops, it follows instructions after the code. Obs1: I'm learning programming logic still, so       I'm "hitting head" with simple codes. Obs...
asked by 31.03.2017 / 17:49
1
answer

Creating a schedule of appointments in Ruby

I want to create a sort of routine that interleaves time interval Example: 8:00 a.m. to 12:00 a.m. 30 minute interval A sample code class Appointment < ActiveRecord::Base has_many :schedules def advance_time(resource) return...
asked by 03.08.2016 / 21:40
1
answer

Problem with loop for in JavaScript

I want the loop below to show all even numbers that are less than or equal to it, but I can only get it to show the last number. If I type 40 and it returns only 2. <div class="calculo"> <input type="number" id="num1" placeholde...
asked by 26.03.2018 / 06:59
1
answer

Creating Paging in Strings with Javascript

I'm creating a code for paging the contents of a new String(); with Javascript, warning in advance, which is a run-time paging compared to a pagination performed by ASP or PHP. It consists of listing a certain number of rows from new S...
asked by 22.05.2016 / 21:12
2
answers

Loading Grid data with CheckBoxColumn

I'm creating a form to register a license for a product. This form serves to record which solution a client has. In the form to add a product you only have to select product and customer . I'm having a hard time crafting the loading...
asked by 10.03.2016 / 13:02
1
answer

Query with INNER JOIN and choose loop reference

Now, I'm querying two tables with INNER JOIN like this: if (! $db->Query("select * from cad_produto inner join cad_variacoes on cad_variacoes.id_produto = cad_produto.id")) $db->Kill(); while (! $db->EndOfSeek()) { $row...
asked by 21.08.2015 / 18:10