JuggaloBrotha said:
string variables always have to have the quotes (" ") around whatever contents you're assigning to the variable
if the quotes arnt there, the IDE will give you an error (or two) and your program wont compile and can't be ran
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 this:
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..