A for loop is a control structure used by many programming languages to iterate over a range. Depending on the language this may be over a range of integers, iterators, etc.

learn more… | top users | synonyms (2)

1
vote
0answers
10 views

paging for string.format in asp.net

I How to paging for string.format. I just like paging In Gridview. For example, there are 20 100 records per page and the rest of the layout. preview 1 2 3 4 5 next using (var cmd = ...
1
vote
2answers
36 views

Default Value in PHP For Loop

I have a HTML select form to select the day/month/year, and this is generated with PHP. My for loop, for example with the month, looks like this: $html="<select name=\"".$name."month\">"; ...
0
votes
1answer
28 views

how to set imagebutton resource using a for loop Android

How can i set the same image resource for a series of imagebutton using a for loop ? ImageButton b1, b2, b3, b4, b5, b6, b7, b8, b9, b10, b11, b12, b13, b14, b15, b16, b17, b18, b19, b20, ...
0
votes
1answer
18 views

How to create a “bbcode” javascript with replace

Markup: <div class="post"> [tag]dfghf[/tag][tag]gh[/tag][tag]cxbcvb[/tag][tag]gh[/tag][tag]cxbcvb[/tag][tag]gh[/tag] </div> JS I have so far- for(var j=0;j<post.length;j++){ ...
-3
votes
2answers
39 views

variable output form foreach loop

I have this sample code from a lastfm script i found..: function getArtistAlbums($artist, $size) { $artist = urlencode($artist); $xml = ...
0
votes
2answers
25 views

for command variable unexpected at this time

dxdiag /t output.txt FOR %%GeForce IN output.txt DO echo You have an NVIDIA GPU. FOR %%Radeon IN output.txt DO echo You have an AMD GPU. The above is a snippet of a batch file I created. When I run ...
0
votes
0answers
6 views

Iterating function over dataframe columns with mixed function results

I have looked on the forum, and tried a few of the (seemingly fitting) "solutions", however I do not believe that any of them are directly suitable. I have a function that currently looks something ...
-1
votes
3answers
45 views

How do java loop conditions work? [closed]

I am using this for loop: ArrayList<String> buttonTitles = new ArrayList<String>(); for (int i = 0; i == 3; i++) { out.println("Looping!"); buttonTitles.add(String.format("Button ...
0
votes
1answer
27 views

Bash For Loop Syntax Error

I am trying to perform a simple for loop, but it keeps telling me there is a syntax error near do. I have tried to find some answers online, but nothing seems to be quite answering my question. The ...
0
votes
2answers
18 views

javascript getting data attribute, using loop not working

I am trying to fetch the "data-number" of my each element using core javascript. i am no able to use the jquery here, because i am editing a plugin. but i am not able to fetch the data html: ...
0
votes
1answer
16 views

MATLAB: Opening and Editing Files nested in folders in folders

I'm working on a project where I need to pull files from this expansive directory with many subfolders nested in folders. I'm a complete novice when it comes to using matlab and directories, and I ...
0
votes
0answers
12 views

Sort directory in DOS and grab first n files

I need to sort a directory alphabetically and then grab the first n files in the folder. This is all in DOS. I was using this as a start: for %a in (*.tif) do ( bla bla ) NOTE: all files in ...
0
votes
1answer
9 views

Java: change variable from outside while looping through a while queque

I am a Java Beginner and have a little question. I have got 2 Classes: the first one is a java formular, the important code is: @Override public void keyPressed(KeyEvent event) { int key = ...
0
votes
1answer
33 views

Need help creating a loop so an object will reappear? [closed]

I want to create a loop so that an object will move up the screen(from the bottom of the screen) all the way to the top and then disappear. I wish to have this happening constantly, I would need a ...
0
votes
2answers
68 views

Read all nodes of xml

Hi i have an xml like this <?xml version="1.0" encoding="UTF-8"?> <receipt> <item></item> <vat></vat> <body> ...

1 2 3 4 5 478
15 30 50 per page