Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Cetin Basoz
  Where is Cetin Basoz?
 Izmir
 Turkey
 Cetin Basoz
 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: 228349 # Views: 1 # Ratings: 0
Version: Visual FoxPro 9 SP2 Category: Forms
Date: Monday, May 18, 2009 12:22:39 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

If in lostfocus the current control is not 'This' then what is that? It is that control itself. ie:

* Lostfocus
if this.Value > 50
  messagebox("Values over 50 is not allowed")
  NODEFAULT
  this.setfocus()
endif


Cetin Basoz

.Net has got better.Think about moving - check my blog:
Blog (main)
Blog (mirror)

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