473,387 Members | 1,365 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

BC30574: Option Strict On disallows late binding.

Hi, I'm obviosly needing help identifying what is causing my issue here:

I am trying to dynamically display a different top header graphic by a list of graphics for a date range. Am I going about this correctly. Where could my issue be.

Expand|Select|Wrap|Line Numbers
  1. Sub Page_Load(Src As Object, E As EventArgs)
  2.         Dim strDate As String = String.Format("{0:mmdd}", Now)
  3.         Dim lImage As String()
  4.         Dim rImage As String()
  5.         Dim intVal As Integer
  6.         Dim BannerArray as Array
  7.  
  8.         BannerArray = Split("12/15|12/30|/images/xmaslogo.jpg|/images/logorightxmas.jpg","|")
  9.         BannerArray = Split("05/15|05/30|/images/logo0.jpg|/images/logoright0.jpg","|")
  10.         BannerArray = Split("06/01|06/30|/images/logo1.jpg|/images/logoright1.jpg","|")
  11.  
  12.         For intVal = LBound(BannerArray) To UBound(BannerArray)
  13.             if String.format("{0:mmdd}",Left(BannerArray(intVal), 5)) >= strDate and String.format("{0:mmdd}",Left(Right(BannerArray(intVal), Len(BannerArray(intVal)) - 6), 5),"/","")) <= strDate then
  14.                 lImage(intVal) = Left(Right(BannerArray(intVal), Len(BannerArray(intVal)) - 12), 27)
  15.                 rImage(intVal) = Right(BannerArray(intVal), 21)
  16.             Else
  17.                 ltimage.imageurl = "/images/logoright010207.jpg"
  18.                 rtimage.imageurl = "/images/trinet_logo_05-11-07.jpg"
  19.             End If
  20.         Next
  21.     End Sub
  22.  
Thank You in advance for you assistance:

Please note - all the <asp:image> are declared and on the page as well as any labels that may be associated.

-GaretJax
May 24 '07 #1
0 1313

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Karl Lang | last post by:
Hi I've created a new configuration section in Web.Config to hold the connection string for my database. If I have Option Strict On I get a message "Option Strict On disallows late binding" when I...
12
by: Simon Harris | last post by:
Hi All, I've been advised to use option strict. I've tried to read up on this, all i can find is that it... "disallows implicit narrowing conversions" This kinda makes sense - Means I have...
3
by: Starbuck | last post by:
Hi The following generates an error when Option Strict is On Can anytell tell me how to get round this please. Private Sub optWithTone_CheckedChanged(ByVal eventSender As System.Object, ByVal...
4
by: Heinz | last post by:
Hi all, I use VB.net 2003 and want to export data to Excel. Target PCs still have Office 2000 so I could not use Microsofts PIAs. Instead I use the included Excel 10 COM DLL from Microsoft....
7
by: Owen Mortensen | last post by:
(This code was working in asp.net 1.1 VS2003. After upgrade to VS2005, chokes): in the aspx file: <ItemTemplate> <asp:datagrid id="dg_instr" runat="server" AutoGenerateColumns="False"...
1
by: Adotek | last post by:
Hi All, I've just converted a solution from .Net v1.1 to v2.0, by allowing Visual Studio 2005 to do the conversion. Since doing so, I am getting a compilation error as follows: "Option...
2
by: GS | last post by:
I have installed the ms PIA for ofc XP, and followed the article http://support.microsoft.com/kb/247412/ trying to paste into a worksheet However I got late binding not allowed errors .......
7
by: Lynn | last post by:
Hello, I have a website that is working fine. I have just turned on "option strict" and am getting an error with the parts of my code. I have fixed everything but this section, which has me...
0
by: Ronald S. Cook | last post by:
Hi, I'm wanting to iterate over a generic IList, but the code won't compile because the blue sqiggle line under: _DataRow("SecurityFunctionName") = _IList(i).SecurityFunctionName; sez...
15
by: tshad | last post by:
I have the following in my VS 2008 code: parameters(0).Value = Session("User").CompanyID I assume this means that since there is no "User" at this point I can't do this. But it will be...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.