Click here to Skip to main content
15,890,557 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Line in Volume control! Pin
Eddy Vluggen10-Feb-17 6:20
professionalEddy Vluggen10-Feb-17 6:20 
GeneralRe: Line in Volume control! Pin
User 989707410-Feb-17 4:03
User 989707410-Feb-17 4:03 
GeneralRe: Line in Volume control! Pin
Gerry Schmitz10-Feb-17 11:19
mveGerry Schmitz10-Feb-17 11:19 
GeneralRe: Line in Volume control! Pin
User 989707412-Feb-17 4:28
User 989707412-Feb-17 4:28 
QuestionHow to Download File and Upload in Datagridview VB.NET Pin
Mitsunari Ishida30-Jan-17 15:18
Mitsunari Ishida30-Jan-17 15:18 
AnswerRe: How to Download File and Upload in Datagridview VB.NET Pin
Richard MacCutchan30-Jan-17 22:20
mveRichard MacCutchan30-Jan-17 22:20 
AnswerRe: How to Download File and Upload in Datagridview VB.NET Pin
Simon_Whale30-Jan-17 23:16
Simon_Whale30-Jan-17 23:16 
QuestionLinq, I get an extra blank record on GroupBy, How to select it out Pin
jkirkerx27-Jan-17 12:04
professionaljkirkerx27-Jan-17 12:04 
I get 2 extra records after grouping, in which there is no FSALESREP and it's just blank after grouping.
Is this something I can fix in Linq, or do I need to go back to the SQL call to the FoxPro database?
" SELECT" & _
"   h.FSALESPN " & _
" , h.FPERIOD " & _
" , h.FCSAMT " & _
" FROM ARINV01H.dbf h " & _
" WHERE h.FSHIPDATE >= @FSTART " & _
" AND h.FSHIPDATE <= @FSTOP "
Dim gSalesReps As List(Of model_salesChampions) = invoices.GroupBy(Function(sR) sR.FSALESREP).Select(Function(cl) New model_salesChampions() With {
    .salesrep_ID = cl.First().FSALESREP,
    .salesrep_Name = String.Empty,
    .P1 = cl.Where(Function(p1) p1.FPERIOD = rT & "01").Sum(Function(p1) p1.FCSAMT),
    .P2 = cl.Where(Function(p2) p2.FPERIOD = rT & "02").Sum(Function(p2) p2.FCSAMT),
    .P3 = cl.Where(Function(p3) p3.FPERIOD = rT & "03").Sum(Function(p3) p3.FCSAMT),
    .P4 = cl.Where(Function(p4) p4.FPERIOD = rT & "04").Sum(Function(p4) p4.FCSAMT),
    .P5 = cl.Where(Function(p5) p5.FPERIOD = rT & "05").Sum(Function(p5) p5.FCSAMT),
    .P6 = cl.Where(Function(p6) p6.FPERIOD = rT & "06").Sum(Function(p6) p6.FCSAMT),
    .P7 = cl.Where(Function(p7) p7.FPERIOD = rT & "07").Sum(Function(p7) p7.FCSAMT),
    .P8 = cl.Where(Function(p8) p8.FPERIOD = rT & "08").Sum(Function(p8) p8.FCSAMT),
    .P9 = cl.Where(Function(p9) p9.FPERIOD = rT & "09").Sum(Function(p9) p9.FCSAMT),
    .P10 = cl.Where(Function(p10) p10.FPERIOD = rT & "10").Sum(Function(p10) p10.FCSAMT),
    .P11 = cl.Where(Function(p11) p11.FPERIOD = rT & "11").Sum(Function(p11) p11.FCSAMT),
    .P12 = cl.Where(Function(p12) p12.FPERIOD = rT & "12").Sum(Function(p12) p12.FCSAMT)
}).ToList()
21st Century Globalism has become Socialism on a planetary scale, in which the unequal treaties of the past have come back into play.

AnswerRe: Linq, I get an extra blank record on GroupBy, How to select it out Pin
Richard Deeming28-Jan-17 2:58
mveRichard Deeming28-Jan-17 2:58 
GeneralRe: Linq, I get an extra blank record on GroupBy, How to select it out Pin
jkirkerx30-Jan-17 7:13
professionaljkirkerx30-Jan-17 7:13 
Questionbindingsource.filter not working Pin
Member 1108983127-Jan-17 1:03
Member 1108983127-Jan-17 1:03 
AnswerRe: bindingsource.filter not working Pin
Eddy Vluggen27-Jan-17 1:15
professionalEddy Vluggen27-Jan-17 1:15 
GeneralRe: bindingsource.filter not working Pin
Member 1108983127-Jan-17 4:26
Member 1108983127-Jan-17 4:26 
AnswerRe: bindingsource.filter not working Pin
Richard Deeming27-Jan-17 2:07
mveRichard Deeming27-Jan-17 2:07 
GeneralRe: bindingsource.filter not working Pin
Member 1108983127-Jan-17 4:23
Member 1108983127-Jan-17 4:23 
GeneralRe: bindingsource.filter not working Pin
Richard Deeming27-Jan-17 4:26
mveRichard Deeming27-Jan-17 4:26 
GeneralRe: bindingsource.filter not working Pin
Member 1108983127-Jan-17 7:20
Member 1108983127-Jan-17 7:20 
GeneralRe: bindingsource.filter not working Pin
Richard Deeming27-Jan-17 7:37
mveRichard Deeming27-Jan-17 7:37 
QuestionHow to compare 2 different text file lines and then process information if a match is in both file lines - Please help Pin
Member 1186689324-Jan-17 5:29
Member 1186689324-Jan-17 5:29 
AnswerRe: How to compare 2 different text file lines and then process information if a match is in both file lines - Please help Pin
Richard Deeming24-Jan-17 6:02
mveRichard Deeming24-Jan-17 6:02 
GeneralRe: How to compare 2 different text file lines and then process information if a match is in both file lines - Please help Pin
Member 1186689324-Jan-17 8:13
Member 1186689324-Jan-17 8:13 
GeneralRe: How to compare 2 different text file lines and then process information if a match is in both file lines - Please help Pin
Richard MacCutchan24-Jan-17 8:38
mveRichard MacCutchan24-Jan-17 8:38 
GeneralRe: How to compare 2 different text file lines and then process information if a match is in both file lines - Please help Pin
Member 1186689324-Jan-17 9:07
Member 1186689324-Jan-17 9:07 
GeneralRe: How to compare 2 different text file lines and then process information if a match is in both file lines - Please help Pin
Richard MacCutchan24-Jan-17 9:37
mveRichard MacCutchan24-Jan-17 9:37 
GeneralRe: How to compare 2 different text file lines and then process information if a match is in both file lines - Please help Pin
Member 1186689324-Jan-17 10:03
Member 1186689324-Jan-17 10:03 

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.