M Miliuccio Jul 19, 2005 #1 Can i not read with column NUMBER but by COLUMNNAME? rdr.GetString(0) but ?? rdr.GetString(NOMECOLONNA)??
Can i not read with column NUMBER but by COLUMNNAME? rdr.GetString(0) but ?? rdr.GetString(NOMECOLONNA)??
P Peter Foot [MVP] Jul 19, 2005 #2 You can either use the default indexer to retrieve the field value e.g. rdr(NOMECOLONNA) or use GetOrdinal method with the typed Get methods e.g. rdr.GetString(rdr.GetOrdinal(NOMECOLONNA)) Peter
You can either use the default indexer to retrieve the field value e.g. rdr(NOMECOLONNA) or use GetOrdinal method with the typed Get methods e.g. rdr.GetString(rdr.GetOrdinal(NOMECOLONNA)) Peter
M Miliuccio Jul 19, 2005 #3 TY right Peter Foot said: You can either use the default indexer to retrieve the field value e.g. rdr(NOMECOLONNA) or use GetOrdinal method with the typed Get methods e.g. rdr.GetString(rdr.GetOrdinal(NOMECOLONNA)) Peter -- Peter Foot Windows Embedded MVP http://www.inthehand.com | http://www.peterfoot.net | http://www.opennetcf.org Click to expand...
TY right Peter Foot said: You can either use the default indexer to retrieve the field value e.g. rdr(NOMECOLONNA) or use GetOrdinal method with the typed Get methods e.g. rdr.GetString(rdr.GetOrdinal(NOMECOLONNA)) Peter -- Peter Foot Windows Embedded MVP http://www.inthehand.com | http://www.peterfoot.net | http://www.opennetcf.org Click to expand...