Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Append
Message
From
28/04/2008 05:40:34
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Append
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01313438
Message ID:
01313438
Views:
48
hi all,

i try this code it works ,this part not work (no replace)

is there another way as checkbox or option group
IF thisform.text12.Value=val("x")&&no replace
IF thisform.text12.Value=("x")&&no replace
IF thisform.text12.Value="x"&&no replace

		       	replace prior WITH 1
		 endif      	
			 
			 IF thisform.text13.Value=val("x")
		       	replace prior WITH 2
		       	
		 endif      	
			 
			 IF thisform.text14.Value=val("x")
		       	replace prior WITH 3
		 endif      	
all code
cAlias = Thisform.DataEnvironment.InitialSelectedAlias  && This is generic code in this case it is set to "Sore"
Select (cAlias) && Store
Go BOTTOM 
Append Blank
			 
Thisform.Refresh() && thisform.command29.Caption ="Save"
Thisform.SetAll("Enabled",.T.,"textbox")

	Thisform.SetAll("Enabled",.T.,"COMBObox") 
this.enabled = .f. 
thisform.text1.SetFocus() && 
	Thisform.COMMAND18.Enabled=.t. 
		Thisform.COMMAND19.Enabled=.t. 
			Thisform.COMMAND20.Enabled=.t.
			
			IF thisform.text12.Value=val("x")
		       	replace prior WITH 1
		 endif      	
			 
			 IF thisform.text13.Value=val("x")
		       	replace prior WITH 2
		       	
		 endif      	
			 
			 IF thisform.text14.Value=val("x")
		       	replace prior WITH 3
		 endif      	
thanks
Next
Reply
Map
View

Click here to load this message in the networking platform