What is the best way to actually count the number of characters entered in a
checkbox, but not spaces? Would I use a regex of some sort, then count that
result?
Thanks for any pointers.
Regards,
Eric J. Hoffman
DataStream Connexion
www.datastreamconnexion.com
~~~
You can't enter characters in a checkbox, can you?
Not sure what you are trying to do.
Jerry Johnson
>>> [EMAIL PROTECTED] 03/12/03 04:31PM >>>
What is the best way to actually count the number of characters entered in a
checkbox, but not spaces? Would I use a regex of some sort, then count tha
, "all"));
HTH
-- Ben Doom
Programmer & General Lackey
Moonbow Software, Inc
: -Original Message-
: From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
: Sent: Wednesday, March 12, 2003 4:32 PM
: To: CF-Talk
: Subject: Easy Len ?
:
:
: What is the best way to actually c
:32 a.m.
To: CF-Talk
Subject: Easy Len ?
What is the best way to actually count the number of characters entered in a
checkbox, but not spaces? Would I use a regex of some sort, then count that
result?
Thanks for any pointers.
Regards,
Eric J. Hoffman
DataStream Connexion
www.dat
You can use this to get the length of a string, minus spaces..
-Justin Scott
- Original Message -
From: <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Wednesday, March 12, 2003 4:31 PM
Subject: Easy Len ?
> What is the best way to actually count
why not remove the spaces in the string and then use len to calculate the
length?
Clint
- Original Message -
From: <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Wednesday, March 12, 2003 3:31 PM
Subject: Easy Len ?
> What is the best way to act
bject: RE: Easy Len ?
Characters in a checkbox? What do you mean? Aside from that...
len(replace(form.field, " ", ""))
Or do you only mean leading and trailing space?
len(trim(form.field))
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent:
The following should count non-whitespace characaters in a string:
Jim
- Original Message -
From: <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Wednesday, March 12, 2003 2:31 PM
Subject: Easy Len ?
> What is the best way to actually count
Got it...talk about fogettting to start at the easiest answer and going
forward!
-Original Message-
From: Clint [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 12, 2003 3:52 PM
To: CF-Talk
Subject: Re: Easy Len ?
why not remove the spaces in the string and then use len to
> If the first, it looks Matthew's solution is the simplest.
Except I stupidly left out the "all" attribute on the end ;-)
~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription:
http://www.houseof
EMAIL PROTECTED]
: Sent: Wednesday, March 12, 2003 5:00 PM
: To: CF-Talk
: Subject: RE: Easy Len ?
:
:
: Sorry, it's a textarea...need to find out how many actual characters were
: entered...
:
: Regards,
:
: Eric J. Hoffman
: DataStream Connexion
: www.datastreamconnexion.com
:
:
:
: -Origi
atthew Walker [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 12, 2003 3:47 PM
To: CF-Talk
Subject: RE: Easy Len ?
Characters in a checkbox? What do you mean? Aside from that...
len(replace(form.field, " ", ""))
Or do you only mean leading and trailing space?
len(trim(form.
J. Hoffman
DataStream Connexion
www.datastreamconnexion.com
-Original Message-
From: Justin Scott [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 12, 2003 3:55 PM
To: CF-Talk
Subject: Re: Easy Len ?
You can use this to get the length of a string, minus spaces..
-Justin Scott
;[EMAIL PROTECTED]>
Sent: Wednesday, March 12, 2003 5:17 PM
Subject: RE: Easy Len ?
> Am I really losing my mind? I enter this is a test in the text area and
> submitthis is the processing code:
>
>
>
>
>
>
> Yields:
>
> Error.
> Cannot convert thi
Are you sure that variables.Value is a number?
-- Ben Doom
Programmer & General Lackey
Moonbow Software, Inc
: -Original Message-
: From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
: Sent: Wednesday, March 12, 2003 5:17 PM
: To: CF-Talk
: Subject: RE: Easy Len ?
:
:
:
: Wednesday, March 12, 2003 4:46 PM
To: CF-Talk
Subject: RE: Easy Len ?
Are you sure that variables.Value is a number?
-- Ben Doom
Programmer & General Lackey
Moonbow Software, Inc
: -Original Message-
: From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
: Sent: Wednesday, Marc
Sent: Wednesday, March 12, 2003 5:58 PM
: To: CF-Talk
: Subject: RE: Easy Len ?
:
:
: Yes.. .20
:
: It the other variable I made doing the Len() that it shows as a
: string, and
: not a number...so what in the world, I guess? :-)
:
: Regards,
:
: Eric J. Hoffman
: DataStream Conne
17 matches
Mail list logo