View Single Post
  #1 (permalink)  
Old August 16th, 2016, 01:03 PM
winkimjr2 winkimjr2 is offline
Friend of Wrox
Points: 465, Level: 7
Points: 465, Level: 7 Points: 465, Level: 7 Points: 465, Level: 7
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
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