Click here to Skip to main content
12,239,733 members (55,532 online)
   

C#

 
GeneralRe: Hi Pin
Richard MacCutchan17-Jan-13 23:56
mvpRichard MacCutchan17-Jan-13 23:56 
Questionneed a help Pin
helibell16-Jan-13 21:22
memberhelibell16-Jan-13 21:22 
AnswerRe: need a help Pin
d@nish 16-Jan-13 21:26
member d@nish 16-Jan-13 21:26 
QuestionRe: need a help Pin
helibell16-Jan-13 21:35
memberhelibell16-Jan-13 21:35 
AnswerRe: need a help Pin
d@nish 16-Jan-13 21:47
member d@nish 16-Jan-13 21:47 
QuestionRe: need a help Pin
helibell16-Jan-13 22:08
memberhelibell16-Jan-13 22:08 
AnswerRe: need a help Pin
Bire50t16-Jan-13 22:57
memberBire50t16-Jan-13 22:57 
QuestionC# use linq for on filename Pin
dcof16-Jan-13 20:24
memberdcof16-Jan-13 20:24 
In a C# 2008 desktop application, I can using the following statement to select error reports that are displayed on excel spreadsheets:
string[] excelFiles = Directory.GetFiles(strFullpath, "*ErrorReport.xlsx")
                           .Select(path => Path.GetFileName(path))
                           .ToArray(); 
Due to the above, I have the following questions:
1. if I want to change the statement to select either "*bErrorReport.xlsx" or "*dErrorReport.xlsx" or "*ErrorReport.xlsx",
how would I change the statement I just displayed?
2. The above statement picks 3 excel spreadsheets and there are really only two excel spreadsheets. The excelspreadshets that are valid
include:
customer_number_bErrorReport.xlsx,
and customer_number_ErrorReport.xlsx.

The invalid value that is selected is
~customer_number_bErrorReport.xlsx.

Can you show me the code, so an invalid spreadsheet called ~customer_number_bErrorReport.xlsx is not selected?
AnswerRe: C# use linq for on filename Pin
d@nish 16-Jan-13 21:08
member d@nish 16-Jan-13 21:08 
GeneralRe: C# use linq for on filename Pin
dcof17-Jan-13 9:19
memberdcof17-Jan-13 9:19 
AnswerRe: C# use linq for on filename Pin
Eddy Vluggen17-Jan-13 1:35
mvpEddy Vluggen17-Jan-13 1:35 
GeneralRe: C# use linq for on filename Pin
dcof17-Jan-13 9:18
memberdcof17-Jan-13 9:18 
QuestionRead every single keyboard press? [solved] Pin
Midnight Ahri16-Jan-13 16:24
memberMidnight Ahri16-Jan-13 16:24 
GeneralRe: Read every single keyboard press? Pin
PIEBALDconsult16-Jan-13 16:34
memberPIEBALDconsult16-Jan-13 16:34 
QuestionRe: Read every single keyboard press? Pin
Midnight Ahri16-Jan-13 16:52
memberMidnight Ahri16-Jan-13 16:52 
AnswerRe: Read every single keyboard press? Pin
PIEBALDconsult16-Jan-13 16:56
memberPIEBALDconsult16-Jan-13 16:56 
AnswerRe: Read every single keyboard press? Pin
Midnight Ahri16-Jan-13 17:03
memberMidnight Ahri16-Jan-13 17:03 
GeneralRe: Read every single keyboard press? Pin
PIEBALDconsult16-Jan-13 18:13
memberPIEBALDconsult16-Jan-13 18:13 
GeneralRe: Read every single keyboard press? Pin
pt140116-Jan-13 20:30
memberpt140116-Jan-13 20:30 
AnswerRe: Read every single keyboard press? Pin
Midnight Ahri16-Jan-13 20:43
memberMidnight Ahri16-Jan-13 20:43 
GeneralRe: Read every single keyboard press? Pin
pt140116-Jan-13 21:04
memberpt140116-Jan-13 21:04 
AnswerRe: Read every single keyboard press? Pin
Midnight Ahri16-Jan-13 21:27
memberMidnight Ahri16-Jan-13 21:27 
AnswerRe: Read every single keyboard press? Pin
Dave Kreskowiak16-Jan-13 18:32
mvpDave Kreskowiak16-Jan-13 18:32 
AnswerRe: Read every single keyboard press? Pin
Eddy Vluggen17-Jan-13 1:41
mvpEddy Vluggen17-Jan-13 1:41 
GeneralRe: Read every single keyboard press? Pin
jschell17-Jan-13 9:30
memberjschell17-Jan-13 9:30 

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.


Advertise | Privacy | Mobile
Web02 | 2.8.160426.1 | Last Updated 28 Apr 2016
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid