Categories: MSDN / DotNet / Java / Scripts / Linux / PHP Ask - La ask - La Answer

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]
# 1 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?
Phil Weber at 2007-11-11 21:47:24 >
# 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..
izza_azhar at 2007-11-11 21:48:22 >
# 3 Re: how to pass teh variable?
Copy and paste all the code in your function so we can understand it a little better. What variable are you passing to the database? It looks more like you are trying to read data from the database.
Jtangowski at 2007-11-11 21:49:24 >
# 4 Re: how to pass teh variable?
Yes, I don't understand either what you mean. What are you trying to do ?
ablaye at 2007-11-11 21:50:29 >