Click here to Skip to main content
15,898,938 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi
Hello I have develope my application in vb.net vs2005. I got a following error in this line :
VB
Dim FCount As Integer = FieldNames.Count
           Dim fnames() As String = New String(FCount)
           Dim tmpFNames() As String = New String(FCount)

cannot be converted to '1-dimensional array of Char

How to resollve this error.. please help me.
Posted
Updated 30-May-11 5:34am
v2

Try:
Dim FCount As Integer = FieldNames.Count
Dim fnames As String() = New String(FCount)
Dim tmpFNames As String() = New String(FCount)
 
Share this answer
 
Try this.....

Dim FCount As Integer = FieldNames.Count
Dim fnames(FCount) As String
Dim tmpFNames(FCount) As String
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900