p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   ASP.NET 2.0 Basics (http://p2p.wrox.com/forumdisplay.php?f=136)
-   -   Option Strict On disallows late binding. (http://p2p.wrox.com/showthread.php?t=54727)

binici February 28th, 2007 08:53 PM

Option Strict On disallows late binding.
What am i doing incorrectly?

Dim Results As Array
Dim strDoorsWindow As String

Results = Split(strPatioChar, ",")

For i = 0 To UBound(Results) - 1

For Each li In patio_characteristics.Items

If li.Text = Results(i) Then

li.Selected = True

Exit For

End If



Thanks for the help.

gbianchi March 1st, 2007 09:03 AM

nothing.. you have any error?



================================================== =========
Read this if you want to know how to get a correct reply for your question:
^^Took that from dparsons signature and he Took that from planoie's profile
================================================== =========

binici March 2nd, 2007 07:38 PM

I figured it out. I had to set Results to:

Dim Results() as String, otherwise the '()' are not seens as part of the String and counts it as an array.

All times are GMT -4. The time now is 08:43 AM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.