CodeCharge Studio
search Register Login  

Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> ASP

 Error Expected End - RESOLVED

Print topic Send  topic

Author Message
grivers

Posts: 28
Posted: 04/15/2009, 1:56 AM

Can anyone tell me what is wrong with this code?
If (enquiry.priority.Text = "Low") then enquiry.TextBox1.Text = DateAdd("d",60,Date())
Else If (enquiry.priority.Text = "Medium") then enquiry.TextBox1.Text = DateAdd("d",120,Date())
Else If (enquiry.priority.Text = "High") then enquiry.TextBox1.Text = DateAdd("d",240,Date())
End If

I am trying to add the specified number of days to a text field depending on the priority on a drop down.
Thanks.
View profile  Send private message
mljonzs

Posts: 124
Posted: 04/15/2009, 6:59 AM

I don't see an End If Statement here
_________________
What does not begin WITH God, will end in failure!
View profile  Send private message
grivers

Posts: 28
Posted: 04/17/2009, 3:57 AM

I have resolved with the following statement
If (enquiry.priority.Text = "Low") then enquiry.due_date.Text = DateAdd("d",120,Date()) Else
If (enquiry.priority.Text = "Medium") then enquiry.due_date.Text = DateAdd("d",60,Date()) Else
If (enquiry.priority.Text = "High") then enquiry.due_date.Text = DateAdd("d",30,Date())
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.