Click here to Skip to main content
15,910,009 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: General design question Pin
errorfunktion25-Jun-07 22:46
errorfunktion25-Jun-07 22:46 
AnswerRe: General design question Pin
.NetRams25-Jun-07 22:44
.NetRams25-Jun-07 22:44 
GeneralRe: General design question [modified] Pin
errorfunktion25-Jun-07 22:58
errorfunktion25-Jun-07 22:58 
GeneralRe: General design question Pin
.NetRams25-Jun-07 23:31
.NetRams25-Jun-07 23:31 
AnswerRe: General design question Pin
Dave Kreskowiak26-Jun-07 4:55
mveDave Kreskowiak26-Jun-07 4:55 
GeneralRe: General design question Pin
errorfunktion26-Jun-07 7:06
errorfunktion26-Jun-07 7:06 
GeneralRe: General design question Pin
Dave Kreskowiak26-Jun-07 12:21
mveDave Kreskowiak26-Jun-07 12:21 
QuestionLooping through the data rows of a data set Pin
Brendan Vogt25-Jun-07 20:22
Brendan Vogt25-Jun-07 20:22 
Hi,

I am looping through the rows and columns of a dataset like this:

' Loop thru the rows
For i = 0 To ds.Tables(0).Rows.Count - 1

' Loop thru the columns
For j = 0 To ds.Tables(0).Columns.Count - 1
Response.Write(ds.Tables(0).Columns(j).ColumnName & ": " & ds.Tables(0).Rows(i).ItemArray.GetValue(j) & "<br />")
Next
Response.Write(vbCrLf & vbCrLf)

Next

I just used a lot of prints to see what the output is. I will need to update the records, or insert them, but this check is easy. I need there to be an ID column because this is my primary key. The column names correspond to the field names in the product table. Is there a way of checking, or a search to see if a column names actually exists instead of looping through the fields individually? Or should I just create a function to check this?

I need to check if an ID column exists because this is my primary key, this key is used to either update an existing record, or inserting a new record.

Regards
ma se
AnswerRe: Looping through the data rows of a data set Pin
Vasudevan Deepak Kumar25-Jun-07 22:20
Vasudevan Deepak Kumar25-Jun-07 22:20 
AnswerRe: Looping through the data rows of a data set Pin
SHatchard26-Jun-07 0:23
SHatchard26-Jun-07 0:23 
QuestionCustom Tree View with 3 Check Boxs Pin
MadmanWoo25-Jun-07 19:26
MadmanWoo25-Jun-07 19:26 
AnswerRe: Custom Tree View with 3 Check Boxs Pin
Dave Kreskowiak26-Jun-07 4:48
mveDave Kreskowiak26-Jun-07 4:48 
Questioncrystal reports in visual studio 2005 Pin
Sonia Gupta25-Jun-07 18:55
Sonia Gupta25-Jun-07 18:55 
AnswerRe: crystal reports in visual studio 2005 Pin
Rupesh Kumar Swami25-Jun-07 19:07
Rupesh Kumar Swami25-Jun-07 19:07 
GeneralRe: crystal reports in visual studio 2005 Pin
Sonia Gupta25-Jun-07 19:11
Sonia Gupta25-Jun-07 19:11 
GeneralRe: crystal reports in visual studio 2005 Pin
Rupesh Kumar Swami25-Jun-07 19:40
Rupesh Kumar Swami25-Jun-07 19:40 
GeneralRe: crystal reports in visual studio 2005 Pin
Dave Kreskowiak26-Jun-07 4:43
mveDave Kreskowiak26-Jun-07 4:43 
QuestionERP Software Pin
ShuklaGirish25-Jun-07 18:55
ShuklaGirish25-Jun-07 18:55 
AnswerRe: ERP Software Pin
Xandip25-Jun-07 19:25
Xandip25-Jun-07 19:25 
GeneralRe: ERP Software Pin
ShuklaGirish25-Jun-07 19:34
ShuklaGirish25-Jun-07 19:34 
GeneralRe: ERP Software Pin
Xandip25-Jun-07 20:11
Xandip25-Jun-07 20:11 
AnswerRe: ERP Software Pin
Vasudevan Deepak Kumar25-Jun-07 22:21
Vasudevan Deepak Kumar25-Jun-07 22:21 
GeneralRe: ERP Software Pin
ShuklaGirish26-Jun-07 0:21
ShuklaGirish26-Jun-07 0:21 
QuestionHelp with Geometry Function Pin
frappydan25-Jun-07 18:54
frappydan25-Jun-07 18:54 
AnswerRe: Help with Geometry Function Pin
Johan Hakkesteegt26-Jun-07 23:24
Johan Hakkesteegt26-Jun-07 23:24 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.