Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Thisform.refresh
Message
 
 
To
25/02/2004 13:18:59
Joel Hokanson
Services Integration Group
Bellaire, Texas, United States
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00880542
Message ID:
00880806
Views:
16
Joel,

How does this form not work in your scenario?
DEFINE CLASS form1 AS form


	DoCreate = .T.
	Caption = "Form1"
	cproperty1 = ""
	Name = "Form1"


	ADD OBJECT text1 AS textbox WITH ;
		ControlSource = "thisform.cProperty1", ;
		Height = 23, ;
		Left = 26, ;
		Top = 18, ;
		Width = 100, ;
		Name = "Text1"


	ADD OBJECT command1 AS commandbutton WITH ;
		Top = 24, ;
		Left = 240, ;
		Height = 27, ;
		Width = 84, ;
		Caption = "Command1", ;
		Name = "Command1"


	PROCEDURE reset
		this.cProperty1 = "initial value"
	ENDPROC


	PROCEDURE Load
		thisform.Reset()
	ENDPROC


	PROCEDURE command1.Click
		wait window "doing Joel's thing"
		thisform.Reset()
		thisform.Refresh()
	ENDPROC


ENDDEFINE
run the form, type something different in the textbox, and click the button, after you clear the wait window the form will reset.

Now tell us what you are doing that doesn't work like this form works.

>Naturally what controls and text boxes I us will vary based on application.
>
>In the sample I sent with the DIR, that was just to make something happen on the screen and to learn how to bring the form back to it's original state.
>
>Normally I would like to have the user select a comand button. The program would do some "things" then when it is complete, come back to the same form and allow the user to select another option or just go ahead and select the Return to main menu botton.
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Reply
Map
View

Click here to load this message in the networking platform