L
Lerp
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("arrivalcity")))
Why would you convert a string value into an integer and then back into a
string again?
Regards, Lerp
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("arrivalcity")))
Why would you convert a string value into an integer and then back into a
string again?
Regards, Lerp