Download the free trial version
Basic4android Video
Features
Tutorials and manuals
Showcase
Screenshots

Go Back   Android Development Forum - Basic4android > Basic4ppc (Windows Mobile) > Questions (Windows Mobile)
Documentation Wiki Register Members List B4P Search Today's Posts Mark Forums Read

Questions (Windows Mobile) Post any question regarding Basic4ppc.

text box issues

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-11-2008, 03:29 PM
gjoisa's Avatar
Senior Member
 
Join Date: Feb 2008
Location: Udupi , India
Posts: 165
Default text box issues

Hi,
how to restrict the textbox input value to numeric and input string length ?
Reply With Quote
  #2 (permalink)  
Old 05-11-2008, 03:38 PM
Cableguy's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: N 41º11'30.30" W 8º39'46.60"
Posts: 2,344
Awards Showcase
Forum Contributer 
Total Awards: 1
Default

Simpler way is to check if the string is made only of numbers, and to check the lenght of the entered string...
But that is only done on the text changed event...
To restrick the input itself, I guess some workaround is possible, but a custom DLL would be more eficient...
__________________
Paulo Gomes - Porto, Portugal - Living/Working in France
Mobile Device: Samsung Galaxy S, Android 2.3.4 CUstom ROM
Laptop: Toshiba NB100-130 (running on Win7Ultimate)

My Posts helped you? Consider Buying me a Porto Glass!
Reply With Quote
  #3 (permalink)  
Old 05-11-2008, 03:58 PM
gjoisa's Avatar
Senior Member
 
Join Date: Feb 2008
Location: Udupi , India
Posts: 165
Default

it can not solve my problem . Previously i had devoloped a program for palm . There is such facility , we can restrict the input to numeric and string length .
Reply With Quote
  #4 (permalink)  
Old 05-11-2008, 04:02 PM
Cableguy's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: N 41º11'30.30" W 8º39'46.60"
Posts: 2,344
Awards Showcase
Forum Contributer 
Total Awards: 1
Default

I will try to make a simple dll... Any more desires, text box wise?

Forgot to ask, are targeting the device, the desktop, or both?
__________________
Paulo Gomes - Porto, Portugal - Living/Working in France
Mobile Device: Samsung Galaxy S, Android 2.3.4 CUstom ROM
Laptop: Toshiba NB100-130 (running on Win7Ultimate)

My Posts helped you? Consider Buying me a Porto Glass!
Reply With Quote
  #5 (permalink)  
Old 05-11-2008, 04:15 PM
Senior Member
 
Join Date: May 2007
Posts: 174
Awards Showcase
Beta Tester 
Total Awards: 1
Default

Quote:
Originally Posted by Cableguy View Post
Simpler way is to check if the string is made only of numbers, and to check the lenght of the entered string...
But that is only done on the text changed event...
To restrick the input itself, I guess some workaround is possible, but a custom DLL would be more eficient...
Hi gjoisa, as cableguy mentioned solutions, we have already discussed this here.http://www.basic4ppc.com/forum/quest...-filter-2.html
__________________
Rioven

DEVICE: Motorola ATRIX (Dual Core) Android 2.2.1
DESKTOP: Intel Pentium Dual-core E5200; Microsoft® Windows® Vista Home (Basic); Hard Disk:320GB; Memory:4096MB
Reply With Quote
  #6 (permalink)  
Old 05-11-2008, 04:22 PM
gjoisa's Avatar
Senior Member
 
Join Date: Feb 2008
Location: Udupi , India
Posts: 165
Default

i am targetting only device .
Reply With Quote
  #7 (permalink)  
Old 05-11-2008, 04:58 PM
specci48's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: Germany
Posts: 1,057
Awards Showcase
Beta Tester Forum Contributer 
Total Awards: 2
Default

Hello gjoisa,

just have a look at filippos fgControls.dll (http://www.basic4ppc.com/forum/addit...s-library.html).

The feature fgTextBox allows you to define an input mask for a textbox so the user can only enter data of a special length or fomat.


specci48
Reply With Quote
  #8 (permalink)  
Old 05-11-2008, 05:11 PM
Cableguy's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: N 41º11'30.30" W 8º39'46.60"
Posts: 2,344
Awards Showcase
Forum Contributer 
Total Awards: 1
Default

I was almost sure that the wheel had already been invented....But still I was going for it...
Now I see there's no need...

Have fun gjoisa
__________________
Paulo Gomes - Porto, Portugal - Living/Working in France
Mobile Device: Samsung Galaxy S, Android 2.3.4 CUstom ROM
Laptop: Toshiba NB100-130 (running on Win7Ultimate)

My Posts helped you? Consider Buying me a Porto Glass!
Reply With Quote
  #9 (permalink)  
Old 05-11-2008, 05:16 PM
specci48's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: Germany
Posts: 1,057
Awards Showcase
Beta Tester Forum Contributer 
Total Awards: 2
Default

Quote:
Originally Posted by Cableguy View Post
I was almost sure that the wheel had already been invented....But still I was going for it...
... sometimes it may be good to have an alternative ...
Reply With Quote
  #10 (permalink)  
Old 05-12-2008, 06:18 AM
gjoisa's Avatar
Senior Member
 
Join Date: Feb 2008
Location: Udupi , India
Posts: 165
Default

Thank you Specci48 and CableGuy . Very good solution . It solved my problem . Thank you again for your timely response .
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Text an einen bereits bestehenden Text "anhängen" JOTHA German Forum 7 09-12-2008 01:08 PM
Timing issues leestevens Questions (Windows Mobile) 1 08-08-2008 06:22 PM
Label/Text Control text centering TWELVE Basic4ppc Wishlist 1 06-04-2008 03:20 PM
Hardware Lib related issues Cableguy Questions (Windows Mobile) 11 03-23-2008 02:40 PM
Source Code Form Issues Louis Questions (Windows Mobile) 3 06-16-2007 08:17 PM


All times are GMT. The time now is 09:26 AM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0