Ask this person how they plan to remove duplicates, should they be
accidentally created. For that matter, ask how they plan to detect
duplicates.
If that doesn't work, insist that you be referred to by your full name,
date of birth, and social security number. Don't answer to anything else.
Never mind -- missed the bit about not knowing the array name.
--Ben
Ben Doom wrote:
> variable.structure["reference"][7]
>
> I think that's what you're looking for.
>
> James Smith wrote:
>
>>OK, Stupid question time...
>>
>>I have a s
variable.structure["reference"][7]
I think that's what you're looking for.
James Smith wrote:
> OK, Stupid question time...
>
> I have a structure in the form "Variable.Structure.Reference" that I need to
> access, however "Reference" is an array (which I can loop with arraylen, no
> problem the
ly
update -- there are a number of security and performance fixes.
--Ben
Ian Sheridan wrote:
> Oh it is passing the right info but maybe it's because I am doing this
> on a 6.0 machine
>
> Ian
>
> On Wed, 03 Nov 2004 13:25:35 -0500, Ben Doom <[EMAIL PROTECTED]> wrote:
Except that I do exactly what you said didn't work all the time. I
routinely create request or variable scoped vars in one include to be
used in another. The includes are serial, not nested.
So I don't know what your original problem was, but I'd be careful to
check and make sure that the val
It sounds like it wasn't always being set in the first include.
Regardless of what file a request variable is set in, it is available to
all subsequent code. I may be off a bit with regard to CFCs, but that's
how I understand it.
--Ben
Ian Sheridan wrote:
> well that's the thing I am setting
You could
a) increase the session timeout
b) use client scope
note that if you use client scope, you can't store complex variables
there (like queries or structures).
--Ben
Chad McCue wrote:
> I am looking for a tag or script that will allow a user to continue their session
> when it has expir
You'll need to do 3 updates. The ideal way is to know the unique
identifier of the row you're trying to set. You've got one of those,
right? Right?!?
Anyway, assuming that the table name is "Prices" and you've got a uid
column "priceid", you'd post both prices and priceid from the form, and
QuerySetCell() only changes the value of the query object in CF. That
is, the data CF knows about is changed, but it's not actually changing
anything in the DB.
To change the DB, you'll have to run update queries.
--Ben
Les Mizzell wrote:
> Let's say I'm trying to update the column "PRICE" in
*blush*
--Ben "No, you're thinking of Forta" Doom
Ewok wrote:
> I want a regex book by Ben Doom : ) (no offense Forta, believe me, I have a
> library of your books)
~|
Purchase from House of Fusion, a
Heh. That's exactly what I meant. Looking back, I realize my phrasing
was a bit off, though. :-)
--Ben
Rick Root wrote:
> Much easier solution.
>
> Save the .js file with a .cfm extension. Browsers don't care.
>
>
>
> I do this all the time.
>
You could set the server to have CS parse .js files, or you could simply
include a .cfm file as JavaScript source. IIRC, JavaScript doesn't care
what the extension is, only what the contents are.
HTH.
--Ben
Charlie Griefer wrote:
> I've got some JavaScript that I want to put into an external
> If you are on MX, you can tell the regex to use a non-greedy match for the .*
> (Ninjas, is this syntax correct for MX - me being stuck in 5.0 land?)
>
> ]*>.*?", "", "ALL")>
That's the right syntax. This, however, will remove *all* links, which
is not, if I understood correctly, the goal.
-
This will remove all links, but leave the text inside.
If you want to remove a specific link and its text, replace the pipe
character with the text to be removed.
If neither of these is what you're looking for, post a clarification and
we'll go from there. HTH.
--Ben
Andrew Dixon wrote:
> ]*
Oops! A slight mistake in there.
reReplaceNoCase(content,".*#fieldName#:[[:space:]]+([^[:space:]]+)($|[[:space:]]+.*)","\1")
Some notes:
[[:space:]] represents spaces, tabs, various end-of-line characters (10
and 13 for sure), etc. Basically anything that's whitespace.
In a character class (
uot;Bob: lastName:" as the value of
> firstName. It's like it's going to the next space after the one right
> after the value. Is there a tweak that needs to be made?
>
>
>
>
>
> Thanks for the help!
>
> John Burns
>
> -Original Message-
Jerry Johnson wrote:
> Notes:
> I assumed matching the fieldname's case was a good thing (to
> reduce false positives)
I would have assumed the same. That was my first thought.
> I assumed the characters before and after the data were, in fact,
> spaces (chr(32)). If not, then maybe the [:[spa
Are you sure you've got the fieldname correct? Capitilization counts.
If you want to do a case-insensitive search, use rereplacenocase() instead.
--Ben
Burns, John D wrote:
> Hmmm, I think I see what you're trying to do there, but it doesn't work.
> The files aren't very large at all and I am u
Sounds like some other project is using the same application name. Try
changing it to something else.
--Ben
Phillip Perry wrote:
> In doing my banner rotation template I'm now getting an undefined error. The
> error itself is not whats made me confused. Its the Application variables
> list in t
I would look at it like this:
There's a many:1 relationship users:accounts. Salesrep:account is a
subset of this relationship. The 1:1 nature of this is a restraint I'd
enforce outside the DB proper.
That is, I would check to see if there's a user for the account where
the usertype is salesr
We've had similar problems with software firewalls (specifically Norton)
and proxy servers.
HTH.
--Ben
Ray Champagne wrote:
> I have inherited a rather simple application that has a section where
> listees of an online directory can add/edit/delete their account info once
> logging in to the
Not directly. However, you could use refind() to find the string. I
don't remember what the syntax is off the top of my head, but you can
get the length and position of each matching string. You could then
replace it using repeatstring().
I had to do what you appear to want to do, and that's
You're using the wrong kind of mask for that date format function.
LSDateFormat() is the local system date format, and takes
"short","medium", or "long" (IIRC) as masks.
You want dateformat() instead, I think.
--Ben
Donna French wrote:
> I want to thank you all for being patient with me. I hav
[EMAIL PROTECTED],60}$
seemed to work for me in a quick test. What CF version, etc.?
--Ben
Matt Robertson wrote:
> I have this regex which works splendidly:
>
> [EMAIL PROTECTED]
>
> I want to make it so the string has no less than 6 and no more than 60
> chars, but if I plug in {6,60} it see
Um, if they're entering them one per line, the delimiter would be a
linebreak character, not a space. Try using 10 and 13 as delimiters,
and make sure to trim().
--Ben
Stephenie Hamilton wrote:
> ok, so i have been doing only admin stuff this last year...don't have
> my books with me and am havi
try
query
other stuff
catch
error!
/catch
/try
Wouldn't that work?
--Ben
Phill B wrote:
> If a query doesn't fail, I want to make some thing else happen. What
> would be a good way to do this?
>
[Todays Threads]
[This Message]
[Subscription]
[Fast Unsubscribe]
[User Settings]
[Do
Oops. Heh. Well, that's why I put the disclaimer at the bottom. :-)
--Ben
Duane Boudreau wrote:
> Both Jochem and Ben were very close, here's what worked:
>
> "\[GT:([^]]*)\]"
>
> All I had to do was add the *
>
> Thanks Guys!
> Duane
>
On CFMX, this is the cleanest to read:
"\[GT:(.*?)\]"
On CF5, you'll have to use:
"\[GT:([^]])\]"
Not tested, may need tweaking, YMMV, etc.
--Ben
Duane Boudreau wrote:
> Hi All,
>
> Got a regex question.
>
> Sample content block: There are 31 [GT:moons] that surround Saturn
>
> I need t
amanda l wrote:
> thanks for replying :) i'm not sure what you're referring to as not
> matching up - i'm not seeing it - i went through section by section
> deleting just to double check? (i had stuck that whole phrase in
Yeah, I think it was a Copy'n'paste error, as what you have here has
balan
I'm not sure if this is the issue, but your parens seem to be unbalanced.
Does this regex ever match an email in Safari? That is, you've said
that if you enter it wrong, then correct it, it doesn't match. But does
it match if you enter one correctly the first time?
--Ben
Amanda Lappin - Crys
Sorry I didn't get back to this. I left early yesterday -- injury time.
Anyway, Jeff already gave a good rundown of the classes available to
you, so I'll just give an example.
If you were searching for a simplified version of an email address like
"[EMAIL PROTECTED]" you might look for
[[:aln
CF5 doesn't support Perlish character classes (ie "\w").
IIRC, you can use [[:alnum:]] to replace them.
BTW -- are you sure this is a direct copy from the book (aside from the
\1 vs $1 change)? It looks odd in several ways to me.
--Ben
Josen Ruiseco wrote:
> I am using the following and I ge
It occurs to me that you could use the system to concatenate two files,
then read them as binary.
ie you could "copy file1+file2 file3 /b" and then read file3.
--Ben
Neculai Macarie wrote:
> Hi!
>
> Is there a way to concatenate 2 binary variables (that contain 2 files):
>
>
>
> I want to
>>I'm confused on a number of issues.
> sorry ben but i dont know why u live in kentucky either HAHA jk ;)
My family lives here. Trust me, that's the *only* reason. Rural KY is
not that fun a place.
>>First, I don't know what characters you're referring to.
> http://www.asciitable.com./
> i thi
I'm confused on a number of issues.
First, I don't know what characters you're referring to. But that's
tangental, anyway.
Second, I don't know why you need a regular _expression_. You could just
use a regular replace for each one:
string = replace(string, chr(123), chr(456), 'all')
where 12
Why not just put a hard return in the "seach for" box?
--Ben
Venable, John wrote:
> I'm simply trying to replace all instances on xxyyzz with a hard return. I have tried the search and replace with \n and \r but it just puts in those characters explicitly, this is Whether i have on 'Use Regular
Drop the evaluate. evaluate("bob") is the value contained within bob,
not the literal string "bob".
--Ben
Daniel Kessler wrote:
> I'm trying to do a cfloop to go through a set of checkboxes by an
> array of their names and if they're define, then take their value and
> make an appended strin
> Ahh well, here's the regex I was using if its useful or anyone wants
> to critique it...
>
>
> REReplaceNoCase(txtData,"<(?!/{0,1}(#Arguments.ltAllow#)(\s[^>]*?>|>))[^>]*?>","","ALL")>
Off the top of my head, it looks like it requires 2 closing brackets.
--Ben
[Todays Threads]
[This Messag
CF5 doesn't support lookahead. It's got a fairly weak engine. :-(
--Ben
Mike Kelp wrote:
> Here you go...So you know, in regex:
> x?!y matches x only if it is not followed by y
> x?=y matches x only if it is followed by y
> These are referred to as lookahead expressions
>
> The attached file
> Can ColdFusion's RegEx functions accomplish this, or am I going to have
> to figure out a workaround?
Neither, actually. Try S. Isaac Dealey's StripTags UDF from
http://www.cflib.org.
IIRC, it does exactly what you want. :-)
--Ben
[Todays Threads]
[This Message]
[Subscription]
[Fast
Matt Blatchley wrote:
> Any particular reason why you would consider it not a good practice?
Well, for one thing, IP != user. For example, if I browse here at work,
my IP matches that of 5 other users. If I browse from a dial-up
connection, the IP I have today may have been someone else's yest
Samuel R. Neff wrote:
> You're better off not calling randomize() at all. If you don't call it,
> then CF will default to the calling randomize() with the current time in
> milliseconds. However, due to argument types you can't actually pass that
> level of precision to randomize() yourself.
O
Running a quick test, I'm finding (on CF 6.1) that after runing
randomize(timeformat(now(), "ss")) (which, btw, is not a great sample
set) that I routinely get a reasonable even sample.
That is, for a run of 1, randramge(1,25) returns each number at
least 350-ish times and no more than 450-
It's absolutely possible. I've done exactly what you're doing a number
of times.
Is it possible you're adding new headers? Accidentally embedding extra
form tags? Is the include *only* the select and options, or does it
have other things in it?
--Ben
Tim Claremont wrote:
> I have a bunch
I've never heard of it violating laws, but it violates many sites'
privacy policy. I'm assuming it doesn't violate yours, in which case
(AFAIK) it's legal but not necessarily a good practice.
--Ben
Matt Blatchley wrote:
> Hey folks,
>
> Recently I talked to a few different people and we'
Alistair Davidson wrote:
> One solution I've used before in vaguely similar situations is to
> replace the / character with a placeholder, do the nice clean reg ex,
> then put the slashes back:
> but :
> - you have to choose a placeholder that's never going to appear
> in your input string
I can't think of a clean way to use the punct class.
However, I will state that writing out the chars you *do* want to
replace in a class is going to run faster than what you have. On the
other hand, it's annoying to write. :-)
--Ben
Patricia Lee wrote:
> I want a CF regex to replace all pu
I know this is true of HS+, so I assume it of Dreamweaver:
First, $ represents end of file, not end of line, so use whatever
literal linebreak your system or setup uses.
Second, backreferences are done using backslashes instead of dollar
signs, so use \1 instead of $1.
Finally, the regex you wro
> Which might still leave the question of
> href="">
No {}. :-)
--Ben
[Todays Threads]
[This Message]
[Subscription]
[Fast Unsubscribe]
[User Settings]
[Donations and Support]
I think he doesn't want to find
{document.forms[0].bob.value=dom1.dom2.function()}
I'd remove everything contained in
The list delimiter you used is "[lis:link]". However, CF sees that as a
list of characters to use as a delimiter. That is, [ is a delimiter and
l is a delimiter and i is a delimiter and so on.
Nope, not a bug. Works as documented.
In this case, I'd do something like replace() the [lis:link]
You can't really cache a regular _expression_ in any language I know.
Besides, the time-intensive part is running it against a string, rather
than interpreting it.
There are a few things you can do to speed it up, but keep in mind that
all are marginal. Also, what "optimal" is depends on wheth
It sounds like the user for that DSN doesn't have that DB assigned as
its default.
Just an idea.
--Ben
Dave Francis wrote:
> In CF5.0, SQL 2k
>
> For some reason, tables in one of my databases require a qualified name
> to work, ie.
>
> this works fine:
>
> SELECT * FROM ds
No, you can't reference the value of a column while building the query.
The column doesn't *have* a value in it until the query is built,
sent, and the results returned.
However, you could create a helper table to hold the appropriate
information, and grab it that way.
Or you could march thr
IIRC, DeMoronize (also(?) available at cflib.org) handles all those. If
that's what you were looking at before, then what specifically does it
not handle that you need it to?
--Ben
David Hannum wrote:
> What's the best way to handle the special characters that result of
> copying Word text in
You could require a username/password combo to be passed to the
webservice for each transaction. I've no idea if this is standard, but
it's certainly doable.
--Ben
Mark W. Breneman wrote:
> Any one?
>
>
> Mark W. Breneman
> -Cold Fusion Developer
> -Network Administrator
> Vivid Media
>
Sorry, misread part of your post.
To be honest, we're actually bouncing the images of PHP to resize them,
so I can't help you much with a pure cf/java tool. Sorry.
Good luck.
--Ben
Ray Champagne wrote:
> That is exactly what I want to do, but don't know how. I have been
> dabbling in Java
It sounds like you're resizing on the fly for each request. Instead,
why not resize on upload, store the various sizes, and serve them from
the stored files?
--Ben
Ray Champagne wrote:
> Forgive me if this has been brought up before, but I didn't see anything
> that was solved in the archives
Is this in CFMX? This won't work in CF5 or earlier. They don't
recognize \d as digits.
--Ben
Matt Robertson wrote:
> I'm trying to use this code and it keeps throwing out the string
> whether its valid or not. I know I'm doing something wrong but am a
> dilettante at best when it comes to re
The hyphen represents the hypen anywhere it could not represent a span
of characters. So [0-9-a-z] works, putting it at the beginning works, etc.
--Ben
Spike wrote:
> That's a pretty specific regex for a phone number.
>
> Can you post an example of a number that should pass, but is failing?
>
Was the collection created programmatically? I'm guessing it was, but
it never hurts to ask
--Ben
Chris Berg wrote:
> I can delete the directory manually on the server without rebooting it
> or stopping the service, but I am unable to delete it programmatically,
> this is where my proble
I've not used K2, but...
In Verity on Windows, I've seen problems where a file gets locked by a
CF thread and then is never released. Therefore, it can't be deleted.
Rebooting the box fixes it for me, though there may be a less drastic
solution.
Once you've unlocked the file, you can delete t
Tony Weeg wrote:
> there has to be a reversal tool...if it can go from cfml to .class,
> why not .class to cfm?
Is there a reversal tool to turn bread back into dough?
The .class file has been compiled to java bytecode. You might (might)
be able to find a tool to decompile it into java. The re
I could be wrong, but I don't think spaces are legal between a function
name and the parameters.
ie
window.open (bob)
is wrong
window.open(bob)
is right.
--Ben
Robert Orlini wrote:
> I get an error on a _javascript_ pop-up code. Something about "Expected )"
> Its either a ) or } I'm not sure.
Many third-party print spoolers let you have a "hot folder" that you
could use CFFILE to drop a document into.
Not sure if that's precicely what you're looking for, but I hope it
helps anyway.
--Ben
James Smith wrote:
> Is it even possible to print a word document server side? I have hunted
I'd set a request-scoped variable just before or after my function
declaration (ie "request.functionnameIsDeclared" or something else
you'll never use anywhere else) and check for its existence.
--Ben
Jamie Jackson wrote:
> On Wed, 21 Jul 2004 16:38:03 +0100, in cf-talk you wrote:
>
> >You a
We run AV on our servers for a couple of reasons.
1) AV does tend to update to block new IIS, SQL, etc. virii before MS
gets the affected software patched. From experience, I'm gonna give it
about a 50% rating on that.
2) It can give some limited protection to our webmail users.
3) It can gi
foo.title[1]
You almost had it! :-)
--Ben
[EMAIL PROTECTED] wrote:
> Is there a way to access query results by referencing the record's row
> number? I've tried
>
> foo[1].Title
>
> to get the Title field in row 1 of my query named foo, but I get this error
>
> [Table (rows 1 columns TITLE
Caveats: I'm not a flash programmer generally, and it's been months
since I've done this, but
Sure. Use tags for the version of the link, and
include the params as part of the URL for the (IIRC). The
parameters passed show up as global variables.
HTH.
--Ben
Katz, Dov B (IT) wrote:
Unless I'm reading this wrong (which is possible -- sleep would help)
you should be able to do
...isDefined(theVar)...
Personally, I would take a different approach. I would have the
checkboxes return 1 (or whatever the desired result is when checked) and
cfparam() them to 0.
HTH.
--Ben
Da
> What a douche bag! Incorrect spelling on a business web site? Nice. This
> kid was born in 1979, what would you expect?
Hey! I was born in '79, and I kan spel reeel gud!
Seriously, being young is not a prerequisite for being a dork.
--Ben
[Todays Threads]
[This Message]
[Subscription]
I generally use len(trim(variable)) to test it it's empty (or is blank
space).
--Ben
Daniel Kessler wrote:
> I have a DB where I insert text from a form. If the text is blank, I
> still go through and insert it. I thought I could check on it in the
> display area with:
>
>
>
>
If they only have to be grouped by account number, and so the account
number could be desc instead of asc, you could simply read from the
bottom to the top.
Otherwise, I'd put them in an array or structs, find each 'block' of
account numbers, and re-insert that block upside-down into a new arra
gt;
> - Original Message -
> From: "Ben Doom"
>
> > If I were just trying to remove all beginning and end span tags, I'd use
> > something like
> >
> > ]*>
> >
> > and replace it with the empty string.
> >
>
If I were just trying to remove all beginning and end span tags, I'd use
something like
]*>
and replace it with the empty string.
Not tested, I've barely started the caffeiene, YMMV. :-)
--Ben
Deanna Schneider wrote:
> Okay, I've tried a million variations of this regex in studio, and none
Well, you could also use a QofQ or UDF to re-sort them by length first,
then alphabetically.
--Ben
Mickael wrote:
> I see, that is the only way to do it?
> - Original Message -
> From: Burns, John D
> To: CF-Talk
> Sent: Monday, June 28, 2004 1:55 PM
> Subject: RE: Ordering Fi
tribute.
> I
> > should probably just break it out into a seperate _javascript_ function and
> be
> > done with it.
> >
> > - Original Message -
> > From: "Ben Doom" <[EMAIL PROTECTED]>
> > To: "CF-Talk" <[EMAIL PROTECT
When I tested ^[a-zA-Z0-9]{6,20}$ against "astrjuh" it matched, but not
when I tested it against "astrjuh$".
What version of CF are you using?
--Ben
Todd wrote:
> Yes.
>
> It works correctly as long as there are not at least 6 alphanumeric
> characters side by side. Once there are 6 in a row
> characters long that contains _only_ letters and/or numbers. No special
> characters at all. In the case of ^[a-zA-Z0-9]{6,20}$ it allows special
> characters once it finds at least 6 letters and/or numbers. It's that
> "only" part that is giving me trouble.
Um. No, it shouldn't. I doesn't
^[a-zA-Z0-9]{6,20}$
The ^ matches the beginning o the string and the $ the end.
--Ben Doom
Todd wrote:
> This is probably a simple one, but I have little experience with
> regexps. I have a string that must only contain letters and/or numbers
> and be between 6 and 20 characters
Currently, you have:
^[[:digit:]]{5}(( |-)?[[:digit:]]{4})?$
( |-) represents a space or hypen. If you just want a hypen, you don't
need the parens, space, or pipe.
( |-)? means that the space or hypen is optional.
So, if you want to force a hypen for 9-digit zipcodes, you would want
^[[:digit
Offhand, without spending any time looking at logic:
> return = false;
No equal sign here.
>
> checkForm();">
Remove the "return" from the onSubmit.
--Ben Doom
[Todays Threads]
[This Message]
[Subscription]
[Fast Unsubscribe]
[User Settings]
[Donations and Support]
> Other than that, there shouldn't be too much else she has to do. The key
> is to play with the anti-aliasing setting for that text layer. If you
> want smooth, graphical text items, they will always be blurry to a
> degree, as that's what anti-aliasing does to get rid of the jaggies.
It's also g
He's posted at least a dozen times before, and this is the first one
I've seen about this. I dub him Known Participant, long live the Mailer
Daemon!
--BenD
Dan O'Keefe wrote:
> Is this SPAM or is this a known participant of the list?
>
> Dan
> - Original Message -
> From: Claremo
Here, we've created an "artificial" scope that contains the contents of
both URL and FORM scopes. If something exists in both, FORM overwrites
URL.
--Ben Doom
Joshua O'Connor-Rose wrote:
> At the risk of looking not too bright I have a question maybe I can get
> h
Why not embed this page in an iframe on the thank you page? Or a thank
you page that redirects onLoad to this page, since that ought to leave
the thankyou page visible when the download starts?
--Ben Doom
Dave Francis wrote:
> Hi,
>
> In CF 5.0, to download a file to the user
You could try something like this:
\d{1,2}/\d{1,2}/\d\d(?\d\d)?
Of course, that's only using slashes, not dashes or dots or spaces, but
it should give you the right idea.
--BenD
Mark A. Kruger - CFG wrote:
> Regex gurus,
>
> I have a string and I want to ensure that the date format is:
>
>
> reFind("[^[a-z]]",arguments.userid)
[^a-z]
You were close. You just need to remove the extra brackets.
Putting the carat outside the brackets means "beginning of string", btw.
--Ben
[Todays Threads]
[This Message]
[Subscription]
[Fast Unsubscribe]
[User Settings]
> st=ReFindNoCase("<[^>]((input|textarea|select|option)\b).*?>",SearchString,StartPos,"TRUE")>
The [^>] bit requires that a character exist between the opening bracket
and the text. Assuming you want closing tags as well, aybe you meant
If you don't want closing tags, remove the /? bit.
HTH.
gt;
> >>
> >
> >This bit redirects to another fuseaction if the filesize is too big.
> >The file is still stored in the destination folder as seen above, but no
> >further processing on it is done.
> >
> >--Ben Doom
>
[Todays Threads]
[This Message]
[Subscription]
[Fast Unsubscribe]
[User Settings]
addtoken="No">
>
>
This bit redirects to another fuseaction if the filesize is too big.
The file is still stored in the destination folder as seen above, but no
further processing on it is done.
--Ben Doom
[Todays Threads]
[This Message]
[Subscription]
[Fast Unsubscribe]
[User Settings]
Yes. Yes I did.
:-)
--Ben
Raymond Camden wrote:
> Um... no. Val() is a CF function. I think you mean var. And it must be at
> the beginning of a UDF. Ie
>
> function foo(x,y) {
> var z = 1;
> z = x*y+9;
> return z;
> }
>
[Todays Threads]
[This Message]
[Subscription]
[Fast Unsubscribe]
es to learn from on
there.
--Ben Doom
daniel kessler wrote:
> ah locals, nice.
> That's a boon.
>
> Sure would've been nice to have a course in all this instead of ad-hoc
> and relying on my historical knowledge ("who's buried in grant's tomb"
>
You surround the function declaration (in the script version) with
cfscript tags. The call doesn't have to be in a cfscript block.
There are small differences in loops in the script version vs the tag
version, but (afaik) that's all.
--Ben Doom
daniel kessler wrote:
> huh. so
> Also, why did you val the pv?
If you use "val" to declare a variable, it is local to the function.
this is a good idea, since otherwise you might accidentally overwrite
something in the variable scope.
--Ben Doom
[Todays Threads]
[This Message]
[Subscription]
[Fas
nstead of ECMA
ones. That is you use "is" or "eq" instead of "==" and so forth.
You can call it from a CFSET if you want the results to be put in a
variable:
If you just want them displayed, you can do something like
#function_name(arguments)#
> In my reference (cfmx):
> "Pathname of directory in which to upload the file. If not an absolute
> path (starting a with a drive letter and a colon, or a forward or
> backward slash), it is relative to the ColdFusion temporary directory,
> which is returned by the GetTempDirectory function."
>
>
> The destination attribute has to be a directory (not a file!). You can
> find out the name of the uploaded file with #cffile.serverFile#.
???
From the CFML reference:
Absolute pathname of directory or file on web server.
I know in the past I've used a filename here.
--Ben Do
Try calling the function like this:
priceRangeFormat(pricelo[1], pricehi[1]);
Just a guess, though.
--Ben Doom
Jim McAtee wrote:
> Using CF5. I pull two float columns (prices) from a table and then pass
> the values to a CF function, shown below:
>
> function PriceRangeFo
> WHERE Project_Nm = #StructFind(FORM,Evaluate("SELPROJECT" & issueID))#
> WHERE Project_Nm = #FORM["SELPROJECT" & issueID]#
Try that. Should work better. Or should tell you issueID contains the
wrong data.
--Ben Doom
[Todays Threads]
[This Message]
401 - 500 of 1037 matches
Mail list logo