Topic profile page for Foreach.
This page has aggregated data from forum posts, threads, listings, online discussions, newsgroups, messageboards, and other online sources which contain user generated content for the term: Foreach.
Topic "Foreach" was discussed 20,138 times on 635 sites in last 3 months
Code for the uncoded: Foreach Loops.... Code for the uncoded: Foreach Loops. http://tinyurl.com/yavdqr8 First part of an ongoing series. RT! #php #code4uncoded (via @ envex ) 10:12 AM Nov 11th from Tweetie
while (@ gals < 4) { push(@ gals... while (@ gals < 4) { push(@ gals ,Buffalo::Gal->new()); map { foreach (1..3) { $_->goAroundTheOutside() } } @ gals ; } #songsincode 4:49 PM Aug 20th from Nambu
Started 3 days, 9 hours ago (2009-12-01 20:38:00)
by ChrisInSeattle
I have a section of code that I'd like to run in parallel. The existing code uses an enumerator to get work items, so it all seems a perfect fit for Parallel.ForEach(). I was somewhat surprised to find that the enumerator is being called in parallel, though. This seems odd to me. I don't need to run the iterator in parallel - it's quick and fast. I just want to run the processing of each data ...
Started 5 days, 14 hours ago (2009-11-29 16:01:00)
by G33W1zz
Hi, I'm trying to use foreach to write the results of a query to a csv file (fputcsv is not an option as my server is on php 4.7.4). Problem is that the second foreach returns ONLY the first row of the result set and repeats that row for the duration of the row count; so i get 65 repetitive lines... Been all over the net, but cannot find a solution to this problem. Thx for any ...
Started 5 days, 22 hours ago (2009-11-29 07:25:00)
by kingdm
newbie question about foreach Hello, I just want to ask is there any way I could put a design on my foreach? Here is the snippet of my program which I want to ask for help. PHP Code: I tried to write it this way but an error occurs in line "echo $error . "";
Started 1 week ago (2009-11-27 18:08:00)
by cfdh_edmundo
Displaying the value of the adjacent cell in a FOREACH loop Hi, I'm trying to display the value of an adjacent cell while in a For Each code. I've bolded the line of code I'm tyring to use. If we say for example rMyCell is E9, then I would like F9 to be displayed in a popup. I am trying to do this using the .Row ...
Started 1 week, 1 day ago (2009-11-26 15:48:00)
by RPCASEY001
I have a forEach loop that gets all the power shell scrips in a given folder. However, I can not figure out how to run the script stored in $Files.Name. An example of a script in the folder would be .\Tables\Script.ps1 $server $database where $server and $database are parameters. forEach ( $Files in Dir .\Tables) { .\...
Started 1 week, 2 days ago (2009-11-25 09:31:00)
by bingo345
Hello, http://help.adobe.com/en_US/AS3LCR/Flash_10.0/inde x.html?Vector.html& I'm having problems with the forEach method on the Vector class ( http://help.adobe.com/en_US/AS3LCR/Flash_10.0/inde x.html?Vector.html& ) It tries to explain it, but it's too convoluted for my brain. In my .fla file I have a Vector filled with objects: var balls:Vector. = new Vector.(); The ...
Started 1 week, 2 days ago (2009-11-25 09:20:00)
by wazo
Hi guys Having a issue Lets say I have this Quote: 1 active 2 3 active 4 active 5 it comes out like this Quote: 1 active 2 active 3 active 4 5 Here is my code PHP Code:
Started 1 week, 3 days ago (2009-11-24 18:26:11)
by drroot
delete-duplicate-posts Version 1.3.1 Warning: Invalid argument supplied for foreach() in /.../wp-content/plugins/delete-duplicate-posts/del ete-duplicate-posts.php on line 93 Line 93: foreach ( $custom_field_keys as $key => $value ) { if ($postid''){ $custom_field_keys = get_post_custom_keys($postid); foreach ( $custom_field_keys as $key => $value ) { // $valuet = trim($...
Started 1 week, 3 days ago (2009-11-24 16:46:00)
by Bodo
Hi, my package has a ForEach File Enumerator that processes all files in a folder. I have the requirement that the files get processed by filename sort order. e.g. 1) sc_20091023 2) sc_20091119 3) sc_20091120 Could anyone provide some help on how to do that? Signature Thanks in advance Bodo
Started 3 days, 14 hours ago (2009-12-01 15:29:00)
by jpellet2
I'm really just getting into Powershell so bear with me. I found this handy little script on the web and it really does do what we'd like however it writes only to the display and try as I might, I can't seem to get it to output to a file in the same way as it appears on the screen. If I change "write-host" to "write" each entity is on a different line. Here's the original script:...
Started 1 week, 1 day ago (2009-11-27 03:07:00)
by liyenn
Hi, I'm trying to create the extracted data into array using steps below: foreach($offersid as $offer2) { $lists[$offer2['id']] = $db->GetAll("SELECT * FROM ".TABLE_MEMBER." WHERE id='".$offer2['id']."' AND status='active' "); } When I var_dump($lists) , it shows: Quote: array(3) { [0]=> array(1) ...
Started 6 days, 19 hours ago (2009-11-28 10:46:00)
by Tsalagi
I am currently studying PHP and not just how to cut and paste and hack someones code. I have this block of code I want to understand fully. It's from a WordPress theme I'm using to help me learn PHP. What I don't understand is the foreach loop. Here is what it looks like to my brain. I've included my analysis in comments above each line. Code: //I understand that $categories_list...
Started 1 week ago (2009-11-27 06:21:00)
by johnnyrotten
Hi, I've got something like this: public class A { public string Name { get; set; } public int Height { get; set; } } public class B : A { public int Age { get; set; } } Now I wanna do something like this: foreach (A a in alist) { B b = new B(); b.Name = a.Name; b.Height = a.Height; b.Age = 54; } but I wanna do it without assigning each of the enhirited proporties of class ...
Started 1 week ago (2009-11-27 09:02:00)
by neeraj_kumar_it
Hi I'm using LINQ to sql var advisorsList = (from rec in aeweb.AutoHarvestFILists join c in CashEdgeList on rec.AdvisorID equals c.CeAssignedID select new { rec.FIName, rec.AutoHarvestFI_ID, rec.AdvisorID }); AdvisorList AdvisorsList = new AdvisorList(); foreach (var a in advisorsList) ...
Started 4 days, 19 hours ago (2009-11-30 10:23:00)
by msbatt
Please can somebody help me with this script. I'm developing a property website where the client can add a property to the database using the following script: PHP Code:
Started 6 days, 5 hours ago (2009-11-29 00:07:00)
by klbaiju
Hi iwant to delete a record from xml file using linq the following code is not working XDocument xmlDoc = XDocument.Load(Server.MapPath("people.xml")); var persons = from person in xmlDoc.Descendants("Person") where person.Attribute("id").Value == "100" select person; foreach (XElement person in persons) { person.Remove();...