end statement error happen in vbscript

Please support our Visual Basic 4 / 5 / 6 advertiser: Programming Forums - DaniWeb Sister Site
Reply

Join Date: May 2007
Posts: 23
Reputation: thirunavukaras is an unknown quantity at this point 
Solved Threads: 0
thirunavukaras thirunavukaras is offline Offline
Newbie Poster

end statement error happen in vbscript

 
0
  #1
May 9th, 2007
i want to change background color in panel if checkbox checked is true

i am used vb script;

but i wrote given code

but the expected end of statement error happend

please help me

how define use vbscript...

<script>

Sub Changed()
Try
Dim lcnt As Integer
If Me.c1.Checked = True Then
Me.Panel1.BackColor = Color.Yellow
lcnt = viewstate.Count
viewstate.Add(viewstate.Count, Me.Label1.Text.ToString)
End If
If Me.c1.Checked = False Then
Me.Panel1.BackColor = Color.YellowGreen
End If
Catch ex As Exception
Response.Write(ex.ToString)
End Sub
</script>
Reply With Quote Quick reply to this message  
Join Date: Mar 2007
Posts: 59
Reputation: PVBert is an unknown quantity at this point 
Solved Threads: 5
PVBert PVBert is offline Offline
Junior Poster in Training

Re: end statement error happen in vbscript

 
0
  #2
May 10th, 2007
maybe you should set the backstyle prop. to 'vbBackStyleOpaque' (=1) instead of 0.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:




Views: 1666 | Replies: 1
Thread Tools Search this Thread



Tag cloud for Visual Basic 4 / 5 / 6
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC