Questions tagged as 'for'

0
answers

Loop, For, PL / SQL Cursors (Doubt)

Good morning, my doubt is as follows, my table is like this currently: Nome Idade ID João 5 Lucas 5 João 2 Lucas 1 I wish it looks like this: Nome Idade ID João 2 1 João 5 2 Lucas 1...
asked by 30.01.2018 / 14:04
0
answers

Change the Label everytime the button is pressed

I'm doing a PYTHON table using FOR, in TKINTER, and I would like every time a new number is placed in ENTRY, the label changes to the new table. For example, a number will be placed in the ENTRY and the person will click the TAB button, when it...
asked by 14.09.2017 / 00:58
1
answer

List append on for loop - Swift 3 / Xcode 8 [closed]

I'm having a problem adding items to a list inside the 'for' loop, where all items in the list are repeated with the last value entered. Here's my NSManagedObject list var listCursosNovos: [Cursos] = [] Here's my loop: for i in 0..&l...
asked by 23.01.2017 / 01:34
1
answer

How to stop a for loop that stores strings values entered in C ++?

So I've tried everything I tried to compare type typed a "." or set a threshold value and even then the program does not continue, it stays within the infinite loop. The code comes next: vector<string> inserir(){ vector<string>...
asked by 20.01.2017 / 16:51
0
answers

PHP / Bootstrap - Repeat until X and then until Y then adds new DIV and continues the replay

I'm breaking my head in this repetition, as this is my first question, sorry for the mistakes. :) I'm currently with this code block inside the container: <?php echo '<div class="row">'; $posts = DBRead('posts', "WHE...
asked by 07.08.2015 / 15:50
2
answers

I'm trying to print an array using for in javascript, but it does not display correctly

Print manually and then tried to use for to print, but it turned out I could not see it properly. let mochila = new Array(); let item1 = ['corda', 2], item2 = ['faca', 3], item3 = ['cura', 23], item4 = ['prego', 35];...
asked by 07.11.2018 / 13:30
1
answer

Replacing Wrong Words in a Text Field

I would like an idea of how to create something of the type, text field, where we enter some wrong word (s) and then it is corrected. For example: <body><input type="text" id="exibir" onkeyup="troca()"/></body> <scri...
asked by 15.04.2016 / 03:41
3
answers

How to calculate a FOR for every 6 increments does it echo?

I have a simple FOR that I need every 6 increments to send an echo with a message, follows code: $carros = array("Volvo", "BMW", "Toyota", "Alfa Romeu", "WV", "Teste", "test2", "Teste4", "Teste3", "Teste5", "Volkswagem", "Ferrari"); for ($i=0...
asked by 18.10.2018 / 21:54
1
answer

Insert a loop into another loop

I want to intersperse the second with the first. For illustration, I will use the simple example below as a basis: <script> n = 10; for ( var i = 0; i < n; i++){document.body.innerHTML += i;} for ( var i = 0; i < n; i++){...
asked by 09.04.2016 / 05:19
1
answer

How to get variable and print multiple "li" according to variable number?

I have a $abas = 4 variable. I need PHP to make a echo in the variable number, in which case it would be 4 echos. The result should be: <li>1</li> <li>2</li> <li>3</li> <li>4</li...
asked by 28.08.2018 / 21:10