ASP Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsProgramming Languages - MoreASP Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old June 15th, 2003, 11:47 PM
nicolestiles nicolestiles is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Posts: 5 nicolestiles User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Angry Microsoft VBScript compilation (0x800A03F6)

Hi,

I'm getting the following error on an ASP page that previously worked fine:

Microsoft VBScript compilation (0x800A03F6)
Expected 'End'

I know that this can mean that there's a problem with If..Then...Else structures, but I've checked them over & over and they appear fine. Same goes for loops.

I'm more than happy to send the code if necessary, it's just that it's rather long....

~Nicole

Reply With Quote
  #2  
Old June 16th, 2003, 01:27 AM
nicolestiles nicolestiles is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Posts: 5 nicolestiles User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Hmm..

Well I have solved that problem...and I have a new one!

Here are the relevant parts of the code:

if strAction = "" then 'this is the first time the user has seen this page
intState = 0 'state variable set to indicate new
else
intState =1
Response.Write "this is the else statement"
Dim counter
Dim strRadioName
Dim intRadioNumber
for counter=(Lbound(arrRadioAnswers)) to (Ubound(arrRadioAnswers))
intRadioNumber = counter + 1
strRadioName = strRadioGroupName &intRadioNumber
arrRadioAnswers(counter)= Request.Form (strRadioName)
Response.Write arrRadioAnswers(counter)
next


AND

<%for iLoop = 1 to Rs_Survey("NumberTo") %>
<td width="10%" align=center>
<input type="radio" name="<%=strRadioGroupName & intRadioGroupNumber%>" value="<%=iLoop%>"
<%if (arrRadioAnswers(intRadioGroupNumber - 1)) = iLoop then Response.Write "CHECKED" end if%>>

</td>
<%next %>

What I am trying to do is preserve the data users have entered into a form using radio buttons so that if they have forgotten to fill one out, they don't have to refill the *whole* form. So..i have created an array in which to store their answers and when the radio buttons are generated using ASP, it checks to see if the current value is the value entered by the user and selects this option accordingly.

Except...it's not working I know the array is getting populated thru using debugging Response.Write statements, but when the radio buttons are being generated following form submission they are still all coming out unchecked.

Any ideas?

~Nicole

Reply With Quote
  #3  
Old June 16th, 2003, 01:47 AM
nicolestiles nicolestiles is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Posts: 5 nicolestiles User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Problem solved!

If anyone's interested, I solved the radio button problem with four simple letters thus:

<%if CInt (arrRadioAnswers(intRadioGroupNumber - 1))=iLoop then Response.Write "CHECKED" end if%>>


</td>

<%next 'iLoop%>

~Nicole

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreASP Programming > Microsoft VBScript compilation (0x800A03F6)

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap