[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now


Option Strict Off ?

Posted on 2007-08-01
Medium Priority
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

Sethi earned 1000 total points
ID: 19613750
In your project properties set Option Strict to "Off".

Expert Comment

ID: 19614577
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
ID: 19617580
You are going to have to show us the line of code that caused the problem.


Featured Post

Prep for the ITIL® Foundation Certification Exam

December’s Course of the Month is now available! Enroll to learn ITIL® Foundation best practices for delivering IT services effectively and efficiently.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Article by: Kraeven
Introduction Remote Share is a simple remote sharing tool, enabling you to see, add and remove remote or local shares. The application is written in VB.NET targeting the .NET framework 2.0. The source code and the compiled programs have been in…
Here is a helpful source code for C++ Builder programmers that allows you to manage and manipulate HTML content from C++ code, while also handling HTML events like onclick, onmouseover, ... Some objects defined and used in this source include: …
THe viewer will learn how to use NetBeans IDE 8.0 for Windows to perform CRUD operations on a MySql database.
The viewer will learn how to use and create keystrokes in Netbeans IDE 8.0 for Windows.
Suggested Courses
Course of the Month19 days, 11 hours left to enroll

873 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