Click here to Skip to main content
15,899,313 members
Home / Discussions / C#
   

C#

 
GeneralRe: How to know the .net version of a windows application just looking the code? Pin
Krushna Sahu7-Dec-08 18:33
Krushna Sahu7-Dec-08 18:33 
GeneralRe: How to know the .net version of a windows application just looking the code? Pin
Dave Kreskowiak8-Dec-08 2:15
mveDave Kreskowiak8-Dec-08 2:15 
GeneralRe: How to know the .net version of a windows application just looking the code? Pin
Krushna Sahu1-Jan-09 19:18
Krushna Sahu1-Jan-09 19:18 
Questioncombo box Pin
kirandilip5-Dec-08 19:05
kirandilip5-Dec-08 19:05 
AnswerRe: combo box Pin
beatles16925-Dec-08 20:52
beatles16925-Dec-08 20:52 
GeneralRe: combo box Pin
nelsonpaixao7-Dec-08 14:52
nelsonpaixao7-Dec-08 14:52 
QuestionForEach Loop Pin
Jon Stroh5-Dec-08 18:51
Jon Stroh5-Dec-08 18:51 
AnswerRe: ForEach Loop Pin
Christian Graus5-Dec-08 22:36
protectorChristian Graus5-Dec-08 22:36 
You cannot use a foreach loop if you want to change the values you're looping over. For this, use a for loop.


Jon Stroh wrote:
foreach(DataRow row in dt.Rows) { Guid recnum; recnum = System.Guid.NewGuid(); DataRowView DataRowView currentLineItem = bsLineItemInsert.Current as DataRowView; FBasic8DataSet.LineItemInsertRow currentLineRow = currentLineItem.Row as FBasic8DataSet.LineItemInsertRow; recnum = System.Guid.NewGuid(); currentLineRow.RecNum = recnum; currentLineRow.Type =Convert.ToString('P'); }


This code works on the same row every time, it never works with the 'row' variable and therefore doesn't work by iterating over all the rows at all. It just changes the same row over and over.

Christian Graus

Driven to the arms of OSX by Vista.

GeneralRe: ForEach Loop Pin
Jon Stroh6-Dec-08 4:19
Jon Stroh6-Dec-08 4:19 
AnswerRe: ForEach Loop Pin
Mark Salsbery6-Dec-08 7:17
Mark Salsbery6-Dec-08 7:17 
QuestionRemoting a Form? Pin
Snixtor5-Dec-08 16:09
Snixtor5-Dec-08 16:09 
QuestionAccess MS Access Pin
picasso25-Dec-08 14:48
picasso25-Dec-08 14:48 
AnswerRe: Access MS Access Pin
picasso25-Dec-08 18:31
picasso25-Dec-08 18:31 
QuestionAbout trojans, i worried now!!! Pin
nelsonpaixao5-Dec-08 14:14
nelsonpaixao5-Dec-08 14:14 
AnswerRe: About trojans, i worried now!!! Pin
Christian Graus5-Dec-08 14:57
protectorChristian Graus5-Dec-08 14:57 
AnswerRe: About trojans, i worried now!!! Pin
beatles16926-Dec-08 3:24
beatles16926-Dec-08 3:24 
Questioncoding for server controls Pin
samta khobragade5-Dec-08 13:18
samta khobragade5-Dec-08 13:18 
AnswerRe: coding for server controls Pin
Christian Graus5-Dec-08 14:57
protectorChristian Graus5-Dec-08 14:57 
QuestionRuntime construction of a constructed type [solved] [modified] Pin
PIEBALDconsult5-Dec-08 13:03
mvePIEBALDconsult5-Dec-08 13:03 
AnswerRe: Runtime construction of a constructed type Pin
Luc Pattyn5-Dec-08 18:43
sitebuilderLuc Pattyn5-Dec-08 18:43 
GeneralRe: Runtime construction of a constructed type Pin
PIEBALDconsult5-Dec-08 18:48
mvePIEBALDconsult5-Dec-08 18:48 
QuestionApply dataset changes to excel file Pin
emilio_ts5-Dec-08 12:20
emilio_ts5-Dec-08 12:20 
AnswerRe: Apply dataset changes to excel file Pin
Christian Graus5-Dec-08 15:00
protectorChristian Graus5-Dec-08 15:00 
QuestionTextBox Overwrite Text Pin
asquaredtech5-Dec-08 11:30
asquaredtech5-Dec-08 11:30 
AnswerRe: TextBox Overwrite Text Pin
Christian Graus5-Dec-08 14:59
protectorChristian Graus5-Dec-08 14:59 

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.