Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: subhankar pandey
  Where is subhankar pandey?
 Kolkata/Delhi
 India
 subhankar pandey
 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: 248873 # Views: 1 # Ratings: 0
Version: Visual FoxPro 9 SP2 Category: Forms
Date: Thursday, December 24, 2009 5:57:35 AM         
   


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

Hi,

create new method in that form, and define the following code in click event
WITH THISFORM
		For Each loControl In .Controls
		IF TYPE('LOCONTROL.CONTROLS[1,1]')#"O"
		 	LOOP
		ENDIF	
		 If Upper(ALLTRIM(loControl.BaseClass)) = AlltRIM(Upper('TEXTBOX')) 
			loControl.Value=''
		Endif
		Next 
EndWith		
(Not tested)

tks.
Subhankar

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