Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ASP help
Message
From
04/05/2006 16:08:58
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
ASP help
Miscellaneous
Thread ID:
01119364
Message ID:
01119364
Views:
50
The following code is contained in a method of a COM dll designed to service an ASP web page and fails to save the new value of RTA.approved.
Uploadstatus is the name of a checkbox whose value is "True".
select RTA
scatter name loProject memo

* . . . change some values of loProject
	
if alltrim(loRequest.form("uploadstatus").item()) = "True"
  loProject.approved = .t.
else
  loProject.approved = .f.	
endif	

gather name loProject memo



However the following seems to work OK.
select RTA
scatter name loProject memo

* . . . change some values of loProject
	
if alltrim(loRequest.form("uploadstatus").item()) = "True"
  replace RTA.approved with .t.
else
  replace RTA.approved with .f.	
endif	

gather name loProject memo
Can someone explain why the first doesn't work?
Next
Reply
Map
View

Click here to load this message in the networking platform