Questions tagged as 'for'

1
answer

Simple question about for loop

I have 4 images: one image over the other within div . It is over each other because it is in absolute position. I would like to make a simple slideshow , just to learn its basic operation inside a loop . What's wrong with the cod...
asked by 07.06.2016 / 00:37
3
answers

Anyone know me explain the following situation:

pessoa = { nome: 'leandro', idade: '2' } for(x=0;x<pessoa.idade;x++){ console.log('Ola mundo'); // ele repete 2 vezes "Ola mundo" na tela } The question I have is that I thought that javascript differed in string numbers, but...
asked by 20.07.2018 / 02:29
1
answer

More than one list in the same loop

Can I put more than one list in the same loop ? for example, you can put more than one variable in for : for (int a, b; a<10 b<20; a++ b++) { ....... } Then I wanted to put more than one list in the same foreach : fo...
asked by 24.03.2018 / 22:17
1
answer

Loop problem for

I have a problem and I can not identify it in my code, I have a for 60 iterations, and it is falling on if's when I identify it (i in this case) is divisible by 5 or by 3 only in the first iteration , when i is 0. After this it passes the others...
asked by 30.06.2015 / 00:55
1
answer

For not waiting to complete request, it continues the count

I'm developing an ionic application and I'm having a problem when looping. In this loop there is a call from a method of a provider, which makes a request put . My problem is that for does not expect the server to return it to conti...
asked by 08.06.2018 / 16:37
1
answer

How to present only odd and even values with three variables in C?

My variables are: int codigo; --> Sendo esta variável para o switch int numero1,numero2,numero3; The user will enter three variables: printf("Digite o primeiro numero inteiro: "); scanf("%d", &numero1);...
asked by 28.03.2017 / 23:29
2
answers

Convert File Names To Alphabet Letters

Convert File Names To Alphabet Letters For example , I have several image / photo files in a directory, and I want to pass these long names of their images into names designated by the letters of the alphabet Before IMG01-03082016.j...
asked by 21.08.2016 / 17:29
1
answer

How to get the value of several items and change according to my if

I have a list of items (which comes from the database), I need to compare each item from one of those and if the value is 0 change the text. Below is the function I am trying to use to change the value of the item. function isFree(){ var p...
asked by 12.06.2018 / 14:25
2
answers

How to return a specific column as an element with FOR XML AUTO clause

I need to make a particular column an element in the return XML when I use the FOR XML AUTO clause. Automatic return turns all fields into attributes of the corresponding element. All right, but one field or another I need to be an element. I...
asked by 02.03.2018 / 20:39
1
answer

How to read a file if its name is stored in a variable?

I have a file with names of other 980 files actually, so I wanted to read that file and save the names in a variable and then open the file with that name, I tried with the read table but as the name is in a variable it does not recognize. Any s...
asked by 17.04.2017 / 09:49