-
September 8th, 2002, 01:13 PM
#1
Member
ASP help!
Can any one please tell me whats wrong in this while loop. Whenever I run this code in ASP I get a compilation error '800a0400' where WEND is situated. 'Expected Statement'
I thing I am forgetting something, can anyone inform me what it is? Thanks in advance.
I = 1
SUM = 0
WHILE (I < 11)
AI = "A" & I
IF (RS(AI) = "1") THEN
SUM = SUM + 10
ELSE IF (RS(AI) = "2") THEN
SUM = SUM + 5
ELSE
SUM = SUM + 2.5
END IF
I = I + 1
WEND
With great power comes great responsibility.
-
September 8th, 2002, 02:25 PM
#2
You left out an End If
hollow_man,
You left out an "End If"
I = 1
SUM = 0
WHILE (I < 11)
AI = "A" & I
IF (RS(AI) = "1") THEN
SUM = SUM + 10
ELSE
IF (RS(AI) = "2") THEN
SUM = SUM + 5
ELSE
SUM = SUM + 2.5
END IF
END IF '<< You left this out
I = I + 1
WEND
Enjoy
Simon Templer
Simon Templer
\"Your work is to discover your world and then with all your heart give yourself to it. \"
-The Buddha
-
September 8th, 2002, 03:00 PM
#3
Junior Member
Not real sure so could you tell me what kinda laungauge that is?
Black-Mage21
\"You impressed me, and I\'m not easily impressed... Wow a BLUE CAR!\"
-
September 8th, 2002, 03:23 PM
#4
The Language
Black-Mage21 ,
The language is VBScript.
Simon Templer
Simon Templer
\"Your work is to discover your world and then with all your heart give yourself to it. \"
-The Buddha
-
September 8th, 2002, 03:40 PM
#5
-
September 8th, 2002, 04:47 PM
#6
Member
Originally posted here by Black-Mage21
Not real sure so could you tell me what kinda laungauge that is?
Black-Mage21
How could you help if you dont know what language it is?....
-
September 10th, 2002, 03:35 PM
#7
Member
Thank you Simon for a great help. Its difficult sometimese to catch small problems such as these.
Thanx again bud.
With great power comes great responsibility.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
|