Option Strict Off ?

Posted on 2007-08-01
Last Modified: 2013-11-07
A VB6 conversion gave the following error:

Overload resolution failed because no accessible '<method>' can be called without a narrowing conversion:

The recommended solution was to set: Option Strict Off.

I did this but found the same error.

What is the way to correct this error ?

Question by:pillmill
    LVL 18

    Accepted Solution

    In your project properties set Option Strict to "Off".
    LVL 2

    Expert Comment

    I would look at the last executed line or the line that causes the error
    most probably you have decrlared a variable without specifying the type
    for example:
    instead of dim str = "abc"
    try dim str as string = "abc"
    LVL 96

    Expert Comment

    by:Bob Learned
    You are going to have to show us the line of code that caused the problem.


    Featured Post

    6 Surprising Benefits of Threat Intelligence

    All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

    Join & Write a Comment

    If you're writing a .NET application to connect to an Access .mdb database and use pre-existing queries that require parameters, you've come to the right place! Let's say the pre-existing query(qryCust) in Access takes a Date as a parameter and l…
    If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
    The viewer will learn how to use NetBeans IDE 8.0 for Windows to connect to a MySQL database. Open Services Panel: Create a new connection using New Connection Wizard: Create a test database called eetutorial: Create a new test tabel called ee…
    The viewer will learn how to use and create new code templates in NetBeans IDE 8.0 for Windows.

    729 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now