Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > .NET > .NET 4 and Visual Studio 2010 > .NET 4 and Visual Studio 2010 General Discussions
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
.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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Display Modes
  #1 (permalink)  
Old August 16th, 2016, 01:03 PM
Authorized User
Points: 428, Level: 7
Points: 428, Level: 7 Points: 428, Level: 7 Points: 428, Level: 7
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Apr 2013
Posts: 94
Thanks: 13
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
  #2 (permalink)  
Old August 16th, 2016, 03:14 PM
Authorized User
Points: 428, Level: 7
Points: 428, Level: 7 Points: 428, Level: 7 Points: 428, Level: 7
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Apr 2013
Posts: 94
Thanks: 13
Thanked 0 Times in 0 Posts
Default Withdrawing this question

I no longer need help with this question
 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Implicit conversion error on Alter Column? Ron Howerton SQL Language 2 November 3rd, 2009 12:50 PM
implicit conversion seymour_glass C# 7 November 4th, 2007 04:42 PM
Option Strict On disallows late binding. binici ASP.NET 2.0 Basics 2 March 2nd, 2007 06: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 03:27 AM



All times are GMT -4. The time now is 12:56 PM.


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