WinBatch Technical Support Forum
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email
?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
Current release
:
2023C (6.23CWC)
Home
Help
Search
Tech Database
Documentation
Downloads
Hints
Login
Register
WinBatch® Technical Support Forum
»
Archived Boards
»
WinBatch Dynamic Dialogs
»
Dollar value
« previous
next »
Print
Pages: [
1
]
Go Down
Author
Topic: Dollar value (Read 3628 times)
seckner
Jr. Member
Posts: 70
Dollar value
«
on:
October 31, 2013, 05:53:56 pm »
Is there a way to set an edit box (or any other) control to only accept dollar values?
Logged
Deana
Wilson WindowWare Tech Support
Pundit
Posts: 1183
WinBatch® can do it.
Re: Dollar value
«
Reply #1 on:
November 01, 2013, 09:03:56 am »
The editbox control supports the numbers only Style. However to limit the format of the number to two decimal will require a bit more code. You will need to create a Dynamical Dialog Procedure to monitor user input in the control. Here are a few different code samples that should help get you started:
Simple input validation sample:
http://techsupt.winbatch.com/webcgi/webbatch.exe?techsupt/tsleft.web+WinBatch/Dialog~Editor/Dialog~Editor~version~6.X+Checking~Char~By~Char~Input~in~Dialogs.txt
Complex input validation sample:
http://techsupt.winbatch.com/webcgi/webbatch.exe?techsupt/tsleft.web+WinBatch/Dialog~Editor/Dialog~Editor~version~6.X/Samples+Field~validation~with~WinBatch~Dialog.txt
Logged
Deana F.
Technical Support
Wilson WindowWare Inc.
Print
Pages: [
1
]
Go Up
« previous
next »
WinBatch® Technical Support Forum
»
Archived Boards
»
WinBatch Dynamic Dialogs
»
Dollar value