Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > .NET 4 and Visual Studio 2010 > .NET 4 and Visual Studio 2010 General Discussions
|
.NET 4 and Visual Studio 2010 General Discussions For discussing anything about .NET 4, WPF, WCF, the rest of the .NET 4 Framework, and Visual Studio 2010 that isn't about a specific Wrox book. Please post code questions about a specific language (C#, VB, ASP.NET, etc) in the correct language forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the .NET 4 and Visual Studio 2010 General Discussions section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 16th, 2016, 01:03 PM
Friend of Wrox
 
Join Date: Apr 2013
Posts: 101
Thanks: 14
Thanked 0 Times in 0 Posts
Default How do I resolve Option Strict On disallows implicit conversion from boolean to strin

I am getting Option Strict On disallows implicit conversions from 'Boolean' to 'String' on the following line of code.

strCitationNumbers = Msc.Integration.Mncis.Library.v4.Citation.GetCaseN umbersForCitation(strCitationNumber, False)

How do I solve this?

My code
Code:
If Not blnInvalid Then
    'Check if the citation is a duplicate
    strCitationNumbers = Msc.Integration.Mncis.Library.v4.Citation.GetCaseNumbersForCitation(strCitationNumber, False)
    If (strCitationNumbers(0) <> "No Matching Case") Then
    'add the error message
     CType(objXMLCitationNode, XmlElement).SetAttribute("validationError", "This is a duplicate citation.")
    End If
End If
 
Old August 16th, 2016, 03:14 PM
Friend of Wrox
 
Join Date: Apr 2013
Posts: 101
Thanks: 14
Thanked 0 Times in 0 Posts
Default Withdrawing this question

I no longer need help with this question





Similar Threads
Thread Thread Starter Forum Replies Last Post
Implicit conversion error on Alter Column? Ron Howerton SQL Language 2 November 3rd, 2009 01:50 PM
implicit conversion seymour_glass C# 7 November 4th, 2007 05:42 PM
Option Strict On disallows late binding. binici ASP.NET 2.0 Basics 2 March 2nd, 2007 07:38 PM
Option Strict Conversion Problem Little Shell VB.NET 2002/2003 Basics 1 July 17th, 2006 01:30 PM
Error, Strict On disallows implicit conversions f vbGaz VB.NET 2002/2003 Basics 0 January 3rd, 2005 04:27 AM





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