p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   .NET 4 and Visual Studio 2010 General Discussions (http://p2p.wrox.com/forumdisplay.php?f=579)
-   -   How do I resolve Option Strict On disallows implicit conversion from boolean to strin (http://p2p.wrox.com/showthread.php?t=99139)

winkimjr2 August 16th, 2016 01:03 PM

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


winkimjr2 August 16th, 2016 03:14 PM

Withdrawing this question
 
I no longer need help with this question


All times are GMT -4. The time now is 09:29 AM.

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