03-31-2010 07:13 AM
Hi,it is a doubt regarding the Edit Field ,i set the maximum no of characters to be number 3,and when i type more than 3 characters,Dialog is displays field full,
I want to remove it and should not enter more than 3 characters.How to acheive it
Regards
Rakesh Shankar.P
Solved! Go to Solution.
03-31-2010 07:36 AM
Sorry not clear. Please explain again what you want to do, with an example so we are all clear.
03-31-2010 07:59 AM
what i was trying to saying is that in the editfield we can determine max no of characters that can be typed in label field,
For eg
EditField ed=EditField(String s,String s1,int n,long style);
int n-represents the max no of characters that can be filled in editfield
suppose i set the value of n to be 3,and when i enter more than 3 characters it shows Field Full
and now What i want is that i should not get that Field Full alert Dialog when i enter more than 3 characters ,
Can you get my Qn?
03-31-2010 08:04 AM
I did ask for an example.
Say the Field has 123 in it, then the user types 4. What do you want to happen?
03-31-2010 08:17 AM
sorry
When user types 4,what i get is Dialog box whch shows "Field Full",i should not get that Dialog box,
this is the image here
In the image i have EditBox next to "very high" label,when i enter more than 3 characters it shows Field Full and i want it removed,can this be done
Regards
Rakesh Shankar.P
03-31-2010 08:30 AM - edited 03-31-2010 08:31 AM
yes it can be done:
BasicEditField bef = new BasicEditField("Test","",5,BasicEditField.FOCUSABL E)
{
protected void displayFieldFullMessage()
{
}
};
03-31-2010 08:40 AM
Thanks For you Help yosoh and you too peter![]()