Ask a Question related to Dreamweaver AppDev, Design and Development.
-
Jamesy #1
adding to count using array +ASP
Hi,
I have the results of a recordset which each result will be either a one or
two character string... (the first two chars from a postcode)
I also have (as a seperate include file) an array of all of these postcodes
and also the area (region) that they are in..
I need to loop through the recordset, matching the result to a particular
postcode and then match that to it's region and add 1 to the region count.
The end result being that I have a list (or string or array, whatever) or
regions and the number of postcodes found for each region.
Biascally I'm building a page which will tell the user their regional order
ratios...
So, When I'm looping through the recordset, I then perform a sub-loop,
matching the result with the postcodes from the include.
However, after this point I am stuck as to how to add to my count... in fact
I'm stuck on to create the count
I could of course do a series of If "POSTCODE" = "DE" then
NorthWestcount = NorthWestcount + 1
end if
but that seems a pretty bad method considering there are 124 possible
postcodes...
Any ideas?
James
Jamesy Guest
-
adding an array as a hash value
Hi Dermot. Dermot Paikkos wrote: And use warnings; These variables need to have better names so that it's more -
adding to an array of hashes
When I run the following: for($k=0;$k<3;$k++){ $r->{'NUM'} = $k; #$temp->{'NUM'} = $k; #$r = $temp; print "added: $r->{'NUM'}\n"; } ... -
Stop adding record in subform after record count = 1
Can someone help in in what to put after the THEN statment to allow one entry if the Record count is =>1 in the Before insert or should I set the... -
Array count off by one
++Captain Tripps++ wrote: Are you certain there is no '.htdocs' file in your directory, or a .desktop file (if you're using KDE to browse it... -
Ruby Code Snippet: Array.count
On Sat 05 Jul 2003 at 08:01:38 +0900, Stefan Arentz wrote: This is already available with Enumerable#find_all: a = (1..10).to_a puts...



Reply With Quote

