i write following statment in my code

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

but it gives me an error
Conversion 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

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

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.