473,395 Members | 2,151 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

regex handle currency (no post 'twas a newsgroup)

hi. the "thread" i liked (which broght me here from google) wasn't a thread at all? but located here: http://www.thescripts.com/forum/thread493095.html

my app could go any direction at its current infantile stages, so it's wide open for suggestion

i want to let someone enter currency value from $0.01 (exaggeration) to $9999.99. i'm just trying to make it easier on myself for the db backend... do i want to let this guy enter text field? well... i should make it a little more "fun" than that-- but drop-downs dont really make sense for this sort of thing.

a li'l key-pad type ting would be ultra-rad!!

well i suppose a text field is the most logical dealio-- here i am trying to "make it easy on myself" and i'm talkin' keypads. any input will be appreciated. thanks

(ha! why do developers work so hard at making things difficult-- under the guise of making things easy? blah!)
Mar 15 '07 #1
2 1286
AricC
1,892 Expert 1GB
hi. the "thread" i liked (which broght me here from google) wasn't a thread at all? but located here: http://www.thescripts.com/forum/thread493095.html

my app could go any direction at its current infantile stages, so it's wide open for suggestion

i want to let someone enter currency value from $0.01 (exaggeration) to $9999.99. i'm just trying to make it easier on myself for the db backend... do i want to let this guy enter text field? well... i should make it a little more "fun" than that-- but drop-downs dont really make sense for this sort of thing.

a li'l key-pad type ting would be ultra-rad!!

well i suppose a text field is the most logical dealio-- here i am trying to "make it easy on myself" and i'm talkin' keypads. any input will be appreciated. thanks

(ha! why do developers work so hard at making things difficult-- under the guise of making things easy? blah!)
I'd use a text box imagine the amount of options if your drop down list went from $.01 to $9999.99. By keypad thing do you mean like some buttons? That wouldn't be a bad idea, but at that point you would be doing it for user convienence.
Mar 15 '07 #2
acoder
16,027 Expert Mod 8TB
How about two text boxes, one for the integers and the rest for the decimals, then they can only enter numbers so it is much easier to test:
Expand|Select|Wrap|Line Numbers
  1.   ------ ----
  2.  $|    |.|  |
  3.   ------ ----
Mar 15 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Tim Conner | last post by:
Hi, Thanks to Peter, Chris and Steven who answered my previous answer about regex to split a string. Actually, it was as easy as create a regex with the pattern "/*-+()," and most of my string...
0
by: Ckwop | last post by:
Hi, I'm wondering if one of you would be kind enough to help. Here's the code to a class i'm writing. public class SecurityCodeHelp : MobileControlBase { public string BackForm {
1
by: d_grantham | last post by:
I have a newsgroup set up on my web server. How to I develop an web interace to use on an .asp page so users can view / post the newsgroup via the web? I cannot find any how-to's on this. ...
1
by: tomix | last post by:
Hi, I have a master page which contains a menu,i would like to handle post back In the content pages(MenuItemClick event) I tried to do the following in the content page BaseLayout master...
2
by: Samuel Shulman | last post by:
I have to create a page that all it does it handle a 'POST' request with some parameters So I created a blank page and in the Load event I try to handle the parameters passed but the page...
8
by: Mr. SweatyFinger | last post by:
where have they all gone. alt.suicide? alt.findContol.then.slit.your.own.throat?
1
by: vinodkus | last post by:
How can I post to newsgroup for quicker response
6
by: kiran Vidhate | last post by:
Hi I need small help, What I need is when I write a script to handle my post data on my login page. if login failed and i press refresh key browser shows msg to resend the post data I tried...
4
by: The Newfoundland Shopper | last post by:
Can anyone show me or pont me to a php script that posts to a newsgroup? Tim
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.