Can anyone tell me how to convert an int to a string value that I define?

Hi, you do something like this example

<%

' CInt Converts to Integer
' CStr Converts to String
' TypeName Returns subtype variable for your control

a = Cint(1)
b = Cstr(1)

Response.Write(TypeName(a)) & "<br>"
Response.Write(TypeName(b))

%>

strQuery = "select user_id from user_master where manager_id in (" & user_idchk & ")"
                ObjdaAct = New SqlDataAdapter(strQuery, ObjconAct)
                useridslist = New DataTable
                ObjdaAct.Fill(useridslist)
                user_idchk = ""
                If useridslist.Rows.Count > 0 Then

                    For intcounter = 0 To useridslist.Rows.Count - 1
                        user_idchk = user_idchk & useridslist.Rows(intcounter).Item(0) & ", "
                    Next
                    user_idchk = Left(user_idchk, Len(user_idchk) - 2)
                    teammembersids = teammembersids & user_idchk & ", "
                    'user_idchk = "0"
                Else
                    user_idchk = ""
                End If
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.