ok I have a field which allows a user to enter a
time format MASK to be used when displaying
time on a website.
Example: user enters: H:MM:SS TT
This is a proepr formatting mask for TIMEFORMAT.
However if a user enters: NOTIMEFORMAT or something
stupid and off the wall, the timeformat functio
All responses to this thread have been pretty much on the mark and helpful (I always
love regex answers, but that's me...)
But more to the point: Why are USERS of the system allowed to set the formatting of
dates EXPLICITLY?
Sure, give them a default/several defaults to select, and then some op
]
WWW: http://www.evoch.com/
> -Original Message-
> From: Randell B Adkins [mailto:[EMAIL PROTECTED]
> Sent: Friday, April 04, 2003 2:03 PM
> To: CF-Talk
> Subject: Time Format Question
>
>
> ok I have a field which allows a user to enter a
> time format MASK
Why don't you just check to make sure the mask contains only the chars:
"h,H,m,M,s,S,t,T,:" (or whatever the time chars are).
-R
-Original Message-
From: Randell B Adkins [mailto:[EMAIL PROTECTED]
Sent: Friday, April 04, 2003 2:03 PM
To: CF-Talk
Subject: Time Format Quest
PIER System, Inc.)
[EMAIL PROTECTED]
voice : 360.756.8080 x12
fax : 360.647.5351
www.audiencecentral.com
> -Original Message-
> From: Randell B Adkins [mailto:[EMAIL PROTECTED]
> Sent: Friday, April 04, 2003 11:03 AM
> To: CF-Talk
> Subject: Time Format Question
>
>
chars:
"h,H,m,M,s,S,t,T,:" (or whatever the time chars are).
-R
-Original Message-
From: Randell B Adkins [mailto:[EMAIL PROTECTED]
Sent: Friday, April 04, 2003 2:03 PM
To: CF-Talk
Subject: Time Format Question
ok I have a field which allows a user to enter a
time format MASK to b
2:21 PM
To: CF-Talk
Subject: RE: Time Format Question
Cause the field does not need to have all those characters.
Trying to rule out someone putting in something that is not
part of the proper Time Mask paramters
>>> [EMAIL PROTECTED] 04/04/03 02:15PM >>>
Why don'
entral.com
> -Original Message-
> From: Ryan Emerle [mailto:[EMAIL PROTECTED]
> Sent: Friday, April 04, 2003 11:28 AM
> To: CF-Talk
> Subject: RE: Time Format Question
>
>
> Right, so make sure that the chars entered are part of the list
> of acceptable chars? They d
essage-
> From: Ryan Emerle [mailto:[EMAIL PROTECTED]
> Sent: Friday, April 04, 2003 11:28 AM
> To: CF-Talk
> Subject: RE: Time Format Question
>
>
> Right, so make sure that the chars entered are part of the list
> of acceptable chars? They don't all need to be there,
Oh good lord:
REFindNoCase("[^tmhs: ]",string)
-Original Message-
From: Randell B Adkins [mailto:[EMAIL PROTECTED]
Sent: Friday, April 04, 2003 3:01 PM
To: CF-Talk
Subject: RE: Time Format Question
Not trying to strip out the character, I just need to know
if the TIME MASK t
> All responses to this thread have been pretty much on the
> mark and helpful (I always love regex answers, but that's
> me...)
> But more to the point: Why are USERS of the system allowed
> to set the formatting of dates EXPLICITLY?
> Sure, give them a default/several defaults to select, and
>
I've seen similar things implemented elsewhere. It should begin with a default
and have a very brief explanation, or else a help link. Sure, the user can
screw up the look of the output, but so long as you control it to the point of
not allowing them to create errors when the code executes, it sh
12 matches
Mail list logo