Click here to Skip to main content
15,887,434 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: PDF file format in vb.net Pin
Tom Deketelaere17-Jul-07 1:15
professionalTom Deketelaere17-Jul-07 1:15 
GeneralRe: PDF file format in vb.net Pin
Ashish Kumar Vyas17-Jul-07 1:41
Ashish Kumar Vyas17-Jul-07 1:41 
GeneralRe: PDF file format in vb.net Pin
Tom Deketelaere17-Jul-07 1:54
professionalTom Deketelaere17-Jul-07 1:54 
QuestionCheque Printing Pin
hareeshvs17-Jul-07 0:21
hareeshvs17-Jul-07 0:21 
AnswerRe: Cheque Printing Pin
Duncan Edwards Jones17-Jul-07 0:46
professionalDuncan Edwards Jones17-Jul-07 0:46 
GeneralRe: Cheque Printing Pin
hareeshvs17-Jul-07 1:01
hareeshvs17-Jul-07 1:01 
Questionhelp with sum expression Pin
Mr.Kode17-Jul-07 0:21
Mr.Kode17-Jul-07 0:21 
AnswerRe: help with sum expression Pin
Johan Hakkesteegt17-Jul-07 1:22
Johan Hakkesteegt17-Jul-07 1:22 
Hi,

One possible way is to simply loop through the rows of your dataset and add the values from the column you need:
<br />
Dim rw as DataRow<br />
Dim Total as Decimal<br />
'First "save" any changes the user made before this bit of code is triggered<br />
Dataset.AcceptChanges()<br />
'Then loop through all rows in the dataset<br />
For Each rw In Dataset.tables("sourcetable").Rows<br />
'best to add some validation here:<br />
If IsError(Decimal.Parse(rw.Item("price"))) Then<br />
'someone wrote his name in the price field instead of a decimal<br />
'kick his ass<br />
Else<br />
'increase the value of variable Total<br />
Total += rw.Item("price")<br />
End If<br />
Next<br />
'and then for example:<br />
TxtTotal.Text = Total.ToString<br />


Hope this helps you,

Johan

My advice is free, and you may get what you paid for.

GeneralRe: help with sum expression Pin
Mr.Kode17-Jul-07 1:26
Mr.Kode17-Jul-07 1:26 
QuestionList Issue Pin
Tauseef A17-Jul-07 0:01
Tauseef A17-Jul-07 0:01 
AnswerRe: List Issue [modified] Pin
Tom Deketelaere17-Jul-07 1:06
professionalTom Deketelaere17-Jul-07 1:06 
Questioncopy code source in notepad Pin
ilnaz16-Jul-07 23:31
ilnaz16-Jul-07 23:31 
AnswerRe: copy code source in notepad Pin
Vasudevan Deepak Kumar16-Jul-07 23:35
Vasudevan Deepak Kumar16-Jul-07 23:35 
AnswerRe: copy code source in notepad Pin
SHatchard16-Jul-07 23:45
SHatchard16-Jul-07 23:45 
GeneralRe: copy code source in notepad Pin
Tom Deketelaere16-Jul-07 23:59
professionalTom Deketelaere16-Jul-07 23:59 
QuestionAny one know about TreeListView Control? Pin
vurugonda16-Jul-07 23:26
vurugonda16-Jul-07 23:26 
AnswerRe: Any one know about TreeListView Control? Pin
Dave Kreskowiak17-Jul-07 3:56
mveDave Kreskowiak17-Jul-07 3:56 
GeneralRe: Any one know about TreeListView Control? Pin
vurugonda17-Jul-07 6:40
vurugonda17-Jul-07 6:40 
GeneralRe: Any one know about TreeListView Control? Pin
Dave Kreskowiak17-Jul-07 8:31
mveDave Kreskowiak17-Jul-07 8:31 
QuestionHow to create trial version for software Pin
Ajai Chaudhary16-Jul-07 22:52
Ajai Chaudhary16-Jul-07 22:52 
AnswerRe: How to create trial version for software Pin
SHatchard16-Jul-07 23:06
SHatchard16-Jul-07 23:06 
Questionconnecting to remote server Pin
kuromibanana16-Jul-07 22:13
kuromibanana16-Jul-07 22:13 
AnswerRe: connecting to remote server Pin
originSH16-Jul-07 22:17
originSH16-Jul-07 22:17 
GeneralRe: connecting to remote server Pin
kuromibanana17-Jul-07 15:39
kuromibanana17-Jul-07 15:39 
QuestionHow Do i Document a Functional Spec for the Functionality Pin
Vimalsoft(Pty) Ltd16-Jul-07 21:36
professionalVimalsoft(Pty) Ltd16-Jul-07 21:36 

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.