how to pass teh variable?
hye all..
help me on this:
eg : variable1 = "test"
how can i remove the " " ?
and make it: variable1 = test ?
thanks~~
[140 byte] By [
izza_azhar] at [2007-11-11 8:28:55]

# 2 Re: how to pass teh variable?
I don't understand your question. variable1 = "test" assigns the value "test" to variable1. variable1 = test assigns the value of a variable named test to a variable named variable1. What are you trying to do?
actually i dont know what to pass..
that one just the example..
lets go through deeply..
'MyDataReader-->pass it to the database
Dim variable1 as string
'this is my assumption only
'class, habitat = name of attributes that i get after some looping function
variable1 = : "MyDataReader("class") MyDataReader("habitat") "
so, in database it will be pass like:
Try
MyConnection.Open()
MyDataReader = MyCommand.ExecuteReader
While MyDataReader.Read()
variable1 = MyDataReader("class") MyDataReader("habitat")
if u see my assuption above, it goes like this:
"MyDataReader("class") MyDataReader("habitat") "
but the value that i want is like thisL
variable1 = MyDataReader("class") MyDataReader("habitat")
(so, my assumption, i need to remove the "" only..but actually cannot rite because i use string?)
get it?
i dont know what to declare to variable1 to pass the value to the database
hope u can help me..