Ok, Claude has replied to me off-list, and as such I will not repeat here what
he wrote and what I shared in reply (it was a lot). :-)
It just seems that the bottom line is that he was not that familiar with
calling functions at all, so I showed him how to do that.
But his code also showed he
Good to hear. Thanks for the update.
/charlie
From: cfaussie@googlegroups.com [mailto:cfaussie@googlegroups.com] On Behalf Of
Brian Knott
Sent: Thursday, March 26, 2015 12:29 AM
To: cfaussie@googlegroups.com
Subject: *SPAM* RE: *SPAM* [cfaussie] CF11 and Excel
Hi Charlie.
Hi Charlie.
Got your email and sorted ths issue.
Thanks
Brian
From: "Charlie Arehart"
Sent: Thursday, 26 March 2015 2:27 PM
To: cfaussie@googlegroups.com
Subject: RE: *SPAM* [cfaussie] CF11 and Excel
Brian, did you ever se
Brian, did you ever see the reply I’d offered to your note below, sent the same
day here on the list? I don’t want to repeat my reply here as it had 3 links,
and may therefore have been blocked as spam.
But since no one else had replied, I just wanted to make sure you saw that
info. I can rep
Claude, I’m not picking a fight but I don’t see how that answers my question at
all. The good news is that I think you are very close to a solution, but you
seem to have missed what I said.
Why do you have the function being defined within this query loop you refer to
(in words, but don’t refle
This is the code I am using
/**
* Calculates distance between Latitude/Longitude points using haversine formula.
*
* @param lat1latitude of first point (Required)
* @param lon1longitude of first point (Required)
* @param lat2latitude of second point (Required)
* @param lon2
Right, but why do you need the name of the function to be dynamic? Why isn’t it
enough that you pass in args within the loop (and declare the function outside
of it)?
/charlie
From: cfaussie@googlegroups.com [mailto:cfaussie@googlegroups.com] On Behalf Of
rai...@ozemail.com.au
Sent: Wednesda
I am calculating distance between 2 sets of lon / lat and the information is
dynamic so I need to capture the values of the dynamic data and compare them to
the values stored in a database table of which there may been to be several
records tested against the values in the dynamic data
Eg 1
Why are you declaring functions inside a loop?
On Thu, Mar 26, 2015 at 1:59 PM, wrote:
> Hi
>
>
>
> I have a cfscript where it is inside a loop
>
>
>
> function getDistance(loclat, loclon, fencelat, fencelon, units =
> 'kilometers')
>
>
>
> as its in a loop it throws an error as the function of
Hi
I have a cfscript where it is inside a loop
function getDistance(loclat, loclon, fencelat, fencelon, units =
'kilometers')
as its in a loop it throws an error as the function of same name is being
declared multiple times when the loop as more than one record
so how do I name th
10 matches
Mail list logo