Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Ammar Hadi
  Where is Ammar Hadi?
 Al-Samawah
 Iraq
 Ammar Hadi
 To: chaim dudi
  Where is chaim dudi?
 Jerusalem
 South Carolina - Israel
 chaim dudi
 Tags
Subject: RE: Verify textbox typing inside
Thread ID: 228347 Message ID: 228356 # Views: 1 # Ratings: 0
Version: Visual FoxPro 9 SP2 Category: Forms
Date: Monday, May 18, 2009 1:23:17 PM         
   


> Hi
>
> How can I force the user to enter valid data in textbox without to send the code to form method or to send the focus back and forth to other control?
> (I cannot add code 'this.value' in lost focus, since the current control is not 'This').
>
> Thank

Hi Chaim.

you can validate data locally in the textbox in the validate event that occur before the lostfocus event like this:

* valid event
IF this.value<0 && just a sample condition
 MESSAGEBOX("negative values not allowed!",48,"wrong data")
 RETURN 0
ENDIF


Hope this helps

Ammar Hadi ................IRAQ

My Foxite Weblog

---------------
I I I really love foxite
___________________________

ENTIRE THREAD

Verify textbox typing inside Posted by chaim dudi @ 5/18/2009 12:07:14 PM
RE: Verify textbox typing inside Posted by Cetin Basoz @ 5/18/2009 12:22:39 PM
RE: Verify textbox typing inside Posted by Borislav Borissov @ 5/18/2009 12:27:56 PM
RE: Verify textbox typing inside Posted by Ammar Hadi @ 5/18/2009 1:23:17 PM