954,595 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Conversion from string 'xxx' to type 'Integer' is not valid

i write following statment in my code

Response.Write(arr(0).ToString(), arr(1).ToString(), arr(2).ToString())


but it gives me an errorConversion from string "xxx" to type 'Integer' is not valid.
althought array has values like this

arr(0)='erum'
arr(1)='dsds'
arr(2)='sdsd'
arr(3)='Nothing'

Dim arr(3) As String
                Dim record As Int32
                record = 0


i need array values from index 0 to 2 i.e only 3 columns to insert in database

any help

erum
Junior Poster in Training
72 posts since Mar 2008
Reputation Points: 10
Solved Threads: 0
 

Use this code System.Convert.ToString().For conversion string to integer value.

ciint
Newbie Poster
18 posts since Jul 2010
Reputation Points: 10
Solved Threads: 5
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: