Click here to Skip to main content
       

C#

 
GeneralRe: Hi PinmvpRichard MacCutchan17-Jan-13 22:56 
Questionneed a help Pinmemberhelibell16-Jan-13 20:22 
AnswerRe: need a help Pinmember d@nish 16-Jan-13 20:26 
QuestionRe: need a help Pinmemberhelibell16-Jan-13 20:35 
AnswerRe: need a help Pinmember d@nish 16-Jan-13 20:47 
QuestionRe: need a help Pinmemberhelibell16-Jan-13 21:08 
AnswerRe: need a help PinmemberBire50t16-Jan-13 21:57 
QuestionC# use linq for on filename Pinmemberdcof16-Jan-13 19: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 Pinmember d@nish 16-Jan-13 20:08 
GeneralRe: C# use linq for on filename Pinmemberdcof17-Jan-13 8:19 
AnswerRe: C# use linq for on filename PinmvpEddy Vluggen17-Jan-13 0:35 
GeneralRe: C# use linq for on filename Pinmemberdcof17-Jan-13 8:18 
QuestionRead every single keyboard press? [solved] [modified] PinmemberMidnight Ahri16-Jan-13 15:24 
GeneralRe: Read every single keyboard press? PinmemberPIEBALDconsult16-Jan-13 15:34 
QuestionRe: Read every single keyboard press? PinmemberMidnight Ahri16-Jan-13 15:52 
AnswerRe: Read every single keyboard press? PinmemberPIEBALDconsult16-Jan-13 15:56 
AnswerRe: Read every single keyboard press? [modified] PinmemberMidnight Ahri16-Jan-13 16:03 
GeneralRe: Read every single keyboard press? PinmemberPIEBALDconsult16-Jan-13 17:13 
GeneralRe: Read every single keyboard press? Pinmemberpt140116-Jan-13 19:30 
AnswerRe: Read every single keyboard press? PinmemberMidnight Ahri16-Jan-13 19:43 
GeneralRe: Read every single keyboard press? Pinmemberpt140116-Jan-13 20:04 
AnswerRe: Read every single keyboard press? PinmemberMidnight Ahri16-Jan-13 20:27 
AnswerRe: Read every single keyboard press? PinmvpDave Kreskowiak16-Jan-13 17:32 
AnswerRe: Read every single keyboard press? PinmvpEddy Vluggen17-Jan-13 0:41 
GeneralRe: Read every single keyboard press? Pinmemberjschell17-Jan-13 8:30 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    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
Web01 | 2.8.140821.2 | Last Updated 22 Aug 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid