Hi guys,
Thank you very much... i figured that code was a little off

. I will
stick to option strict and use the ordinal example (strFirst =
objDR.GetString(0)) Kevin specified in his reply. I really appreciate your
help guys thank you very much. Now to update this version

lolol
Cheers, Lerp
"Lerp" <> wrote in message
news:...
> Hi all,
>
> With regards to calling data from a database and filling in an editing
form
> based on some query, which is the best (least intensive on processor)
method
> for assigning the returned results to a variable.
> I have been using a couple of ways so far in my project.:
>
> 1. strFirst=objDR("Fname")
> 2. strFirst=objDR.GetOrdinal("Fname")
>
>
> The other reason I am asking is because I have encountered some code in
one
> of the older versions of the project I am working on and I am unsure why
> someone would write it in such a manner:
>
> 1. arrivalcity =
rd.GetString(Convert.ToInt16(rd.GetOrdinal("arriva lcity")))
>
> Why would you convert a string value into an integer and then back into a
> string again?
>
>
> Regards, Lerp
>
>
>
>