Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Anders Altberg
  Where is Anders Altberg?
 Uppsala
 Sweden
 Anders Altberg
 To: khubaib khalid
  Where is khubaib khalid?
 HaroonAbad
 Pakistan
 khubaib khalid
 Tags
Subject: RE: How to clear all text box
Thread ID: 248797 Message ID: 248901 # Views: 2 # Ratings: 4
Version: Visual FoxPro 9 SP2 Category: Forms
Date: Thursday, December 24, 2009 2:50:12 PM         
   


> How can i use setall to clear all textbox. or any other way
> thanks


All your controls should be subclasses of the VFP baseclass controls (without exception I'd like to say.)
You'd then make a Numeric, a Logic, a Date, and a Text subclass TextBox as the next step.
Each class could have an initial empty value and an empty InitialValue property and InitalValue_Assign event. You can then always reset them to this default with code in this event:
Procedure InitialValue_assign
LPARAMETERS newValue
This.ResetToDefault()
This.Value=This.InitialValue
EndProc
*called with 
ThisForm.SetAll('InitialValue','')

Anders

ENTIRE THREAD

How to clear all text box Posted by khubaib khalid @ 12/23/2009 12:52:14 PM
RE: How to clear all text box Posted by Eric den Doop @ 12/23/2009 12:54:56 PM
RE: How to clear all text box Posted by Hyder Zaman @ 12/24/2009 2:03:55 PM
RE: How to clear all text box Posted by subhankar pandey @ 12/24/2009 5:57:35 AM
RE: How to clear all text box Posted by Anders Altberg @ 12/24/2009 2:50:12 PM