Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB.NET 1.0 > VB.NET 2002/2003 Basics
|
VB.NET 2002/2003 Basics For coders who are new to Visual Basic, working in .NET versions 2002 or 2003 (1.0 and 1.1).
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB.NET 2002/2003 Basics 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 July 15th, 2006, 08:36 AM
Authorized User
 
Join Date: Dec 2004
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
Default Option Strict Conversion Problem

I am writing a program with Option Strict ON. I know if I were to turn it off my problem would be solved, however, I would like to understand.

When I write the following code I immediately get a blue underline beneath the second line of code. The message reads:

"Value type of 1-dimensional array of Char cannot be converted to Char"

Dim characterarray As Char

characterarray = New Char(5) {}






 
Old July 17th, 2006, 01:30 PM
Friend of Wrox
 
Join Date: Nov 2004
Posts: 1,621
Thanks: 1
Thanked 3 Times in 3 Posts
Default

Code:
    Dim characterarray() As Char  ' Need to establish that this is an array.

    characterarray = New Char(5) {}





Similar Threads
Thread Thread Starter Forum Replies Last Post
Option Strict On/passing a Datarow cesarfranciso Pro Visual Basic 2005 0 August 1st, 2007 06:04 PM
Option Strict On disallows late binding. binici ASP.NET 2.0 Basics 2 March 2nd, 2007 07:38 PM
Page 154, revisited with Option Strict On irish_songbird BOOK: Beginning Visual Basic 2005 ISBN: 978-0-7645-7401-6 1 September 9th, 2006 07:24 PM
"Option Strict On" with Microsoft Outlook Object ritag General .NET 0 January 25th, 2005 05:36 PM
Option Strict kevin777 VB.NET 2002/2003 Basics 2 October 10th, 2003 11:38 PM





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