not an array issues must be to do with the upper-case conversion again, how do
i get around that with...
response['hotspots'] = [
{
distance ="100",
Robert Harrison wrote:
> 1. Look in the array to see if a value exists and, if so, return the key.
>
Not the most elegant solution, but dirt simple.
searchValue = "13"
key = '';
for (i=1;i lte arrayLen(myAry); i = i + 1)
{
if (myAry[i] = searchValue)
{
key = i;
break;
<br>
{<br>
<br>
return true;<br>
<br>
}<br>
<br>
//--><br>
<br>
<br>
<br>
<!--<br>
<br>
function _CF_checkCFForm_2(_CF_this)<br>
<br>
{<br>
<br>
return true;<br>
<
Be easier to troubleshoot this if you could post the actual HTML from
the browser.
Not sure if this might be the problem...your tag isn't closed
(no ">") ?
...also, parameterExists() has been deprecated since roughly CF 3
(somebody will likely correct me if i'm wrong there...but it's been a
whil
You could carry on the way you are and simply
or
change your loop to a list loop so that the index item will hold each
xlocator item.
or
if you wish to use arrays then take a look at the listToArray()
function.
HTH
Michael Traher
-Original Message-
From: laritru [mailto:[EMAIL P
> Yea, it was a stupid mistake. Not enough caffeine today.
> -Original Message-
> From: Adrian Lynch [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, September 25, 2002 4:10 PM
> To: CF-Talk
> Subject: RE: Array Help - SOLVED
> I lost this thread half way through, but why
Yea, it was a stupid mistake. Not enough caffeine today.
-Original Message-
From: Adrian Lynch [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 25, 2002 4:10 PM
To: CF-Talk
Subject: RE: Array Help - SOLVED
I lost this thread half way through, but why do you need hot as a list and
I lost this thread half way through, but why do you need hot as a list and
an array?
Ade
-Original Message-
From: S. Isaac Dealey [mailto:[EMAIL PROTECTED]]
Sent: 25 September 2002 20:53
To: CF-Talk
Subject: RE: Array Help - SOLVED
You'll probably get better performance ( if
You'll probably get better performance ( if only slightly ) from putting
your outside your loop ... just because the cfml parser then only
has to initiate and drop the cfoutput once instead of once for each
iteration of your loop.
Just 2c...
> I figured it out. Just FYI:
>
>
>
> #Counter#
[EMAIL PROTECTED]]
> Sent: Wednesday, September 25, 2002 2:49 PM
> To: CF-Talk
> Subject: RE: Array Help
>
>
> by the time you get to here #ListGetAt(x, Counter)#, x is no longer a list
>
> Ade
>
> -Original Message-
> From: Tony Carcieri [mailto:[EMAIL PROTECTE
I'd recommend not using a loop on the action page ...
change the structure of the form like this:
checked>
Then on the action page
UPDATE mytable SET
hot = CASE WHEN mykey IN (#form.hotitems#) THEN 1 ELSE 0 END
WHERE mykey IN (#form.availableitems#)
Shoul
:[EMAIL PROTECTED]]
Sent: Wednesday, September 25, 2002 12:01 PM
To: CF-Talk
Subject: RE: Array Help - SOLVED
I figured it out. Just FYI:
#Counter#: #ListGetAt(y, Counter)#
-Original Message-
From: Tony Carcieri [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 25, 2002 2:28 PM
T
x isn't a list - it's an array. You can't use listgetat() with arrays.
try this instead:
#Counter#: #x[Counter]#
or even better, try this:
#i#
+---+
Bryan Love
Macromedia Certified Professional
Internet Application Developer
Databas
I figured it out. Just FYI:
#Counter#: #ListGetAt(y, Counter)#
-Original Message-
From: Tony Carcieri [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 25, 2002 2:28 PM
To: CF-Talk
Subject: Array Help
Hi everyone,
I am developing a sales thing for our reps and I got yanked o
by the time you get to here #ListGetAt(x, Counter)#, x is no longer a list
Ade
-Original Message-
From: Tony Carcieri [mailto:[EMAIL PROTECTED]]
Sent: 25 September 2002 19:28
To: CF-Talk
Subject: Array Help
Hi everyone,
I am developing a sales thing for our reps and I got yanked off a
, ColdFusion Jedi Master for Macromedia
Email: [EMAIL PROTECTED]
Yahoo IM : cfjedimaster
"My ally is the Force, and a powerful ally it is." - Yoda
> -Original Message-
> From: Joe Eugene [mailto:[EMAIL PROTECTED]]
> Sent: Friday, August 09, 2002 12:21 PM
> To: CF-Talk
>
CF-Talk" <[EMAIL PROTECTED]>
Sent: Friday, August 09, 2002 10:26 AM
Subject: RE: Array Help?
> > Whats the advantage of using a structure of arrays??
>
> It may or may not be an advantage. When deciding what type of data
> structure to use, you should always consider what your
Thanks for all your help...
-Original Message-
From: Raymond Camden [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 09, 2002 10:49 AM
To: CF-Talk
Subject: RE: Array Help?
> > If you are completely new to structures, your best bet is
> to read the
> > docs. For a qu
> > If you are completely new to structures, your best bet is
> to read the
> > docs. For a quickie...
>
> I found CFDUMP (or CF_DUMP or CFA_DUMP) invaluable in visualizing the
> "structure" of structures. Until I had that tool I never
> really grokked
> structures at all.
Sorry for the noise,
> If you are completely new to structures, your best bet is to read the
> docs. For a quickie...
I found CFDUMP (or CF_DUMP or CFA_DUMP) invaluable in visualizing the
"structure" of structures. Until I had that tool I never really grokked
structures at all.
___
> Also Since im asking 1000 questions... Should I just be dropping
> this data into a table instead of storing it in memory??? I
> don't want
> to eat up all the ram on the server ya know???
>
I would say it depends on your site usage. Storing some user info in the
application scope is n
Hmm, lot's of things here, I'll comment in code.
> How would I get the data out if I did that???
If you are completely new to structures, your best bet is to read the
docs. For a quickie...
#x.name# or #x["name"]#
>
>
>
>
> Application.UsersInfo = StructNew();
>
>
>
First, if you
> Whats the advantage of using a structure of arrays??
It may or may not be an advantage. When deciding what type of data
structure to use, you should always consider what your needs are. Ie,
how do you plan on storing and using the data. In general, I don't often
use 2d arrays because normally i
bject: RE: Array Help?
ere is my code. What your saying is that I put an array inside of the
structure???
How would I get the data out if I did that???
Application.UsersInfo = StructNew();
user_cfid = Evaluate(CFID);
user_info = Now();
user_Host = CGI.Remote_host;
user
Subject: RE: Array Help?
You don't have to do anything to increase x. If you want to find the
current length of Array, just use arraylen(). This code will add a new
array to the end of the existing array:
CF let's you populate arrays without popula
and duplicate the cunctionality of Groopz.com
by using CF & Java.. But I need to refine the session management piece
first
-Original Message-
From: Raymond Camden [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 09, 2002 10:02 AM
To: CF-Talk
Subject: RE: Array Help?
You don't h
You don't have to do anything to increase x. If you want to find the
current length of Array, just use arraylen(). This code will add a new
array to the end of the existing array:
CF let's you populate arrays without populating every entity. So you can
(b
Try using a structure, using the line number as the key, instead of an
array. A bit more flexible IMHO.
--Scott
- Original Message -
From: <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Wednesday, February 14, 2001 4:09 PM
Subject: Array help?
> New to the list, new to the
28 matches
Mail list logo