Solved

Option Strict On disallows late binding (vb.net)

Posted on 2011-09-08
3
427 Views
Last Modified: 2012-06-27

Hi Expert,

I have a line of code causes error 'Option Strict On disallows late binding',
objApp(obj, Nothing).options.usefont = True

How I can change?

Thanks in advance.
0
Comment
Question by:dshi15
3 Comments
 
LVL 9

Accepted Solution

by:
lisfolks earned 500 total points
ID: 36517714
Basically, the only way to "fix" this error is to turn Option Strict off, avoid using anything that requires late binding, or change your code so you're not narrowing any values.

Here is a discussion from Microsoft:
Option Strict Statement
0
 
LVL 53

Expert Comment

by:Dhaest
ID: 36947318
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Does the idea of dealing with bits scare or confuse you? Does it seem like a waste of time in an age where we all have terabytes of storage? If so, you're missing out on one of the core tools in every professional programmer's toolbox. Learn how to …
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

733 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