Click here to Skip to main content
15,897,226 members
Home / Discussions / C#
   

C#

 
QuestionHow to check a string to see if it’s valid for use in creating a file name Pin
earlgraham21-Aug-07 7:24
earlgraham21-Aug-07 7:24 
AnswerRe: How to check a string to see if it’s valid for use in creating a file name Pin
Brady Kelly21-Aug-07 7:31
Brady Kelly21-Aug-07 7:31 
AnswerRe: How to check a string to see if it’s valid for use in creating a file name Pin
earlgraham21-Aug-07 10:05
earlgraham21-Aug-07 10:05 
GeneralRe: How to check a string to see if it’s valid for use in creating a file name Pin
PIEBALDconsult21-Aug-07 10:50
mvePIEBALDconsult21-Aug-07 10:50 
GeneralRe: How to check a string to see if it’s valid for use in creating a file name Pin
Luc Pattyn21-Aug-07 12:38
sitebuilderLuc Pattyn21-Aug-07 12:38 
AnswerRe: How to check a string to see if it’s valid for use in creating a file name Pin
PIEBALDconsult21-Aug-07 9:59
mvePIEBALDconsult21-Aug-07 9:59 
GeneralRe: How to check a string to see if it’s valid for use in creating a file name Pin
pbraun21-Aug-07 10:49
pbraun21-Aug-07 10:49 
GeneralRe: How to check a string to see if it’s valid for use in creating a file name Pin
PIEBALDconsult21-Aug-07 11:11
mvePIEBALDconsult21-Aug-07 11:11 
Absolutely, why check what the OS/framework will check anyway? That's wasteful.

The custom check may be faulty, causing a false valid or invalid. A false valid will likely result in an exception anyway, so you've wasted the time on the extra check, plus the time writing the faulty check.

I know I couldn't write a filename validity checking routine as fast and accurate as the built-in one.

You don't know to what OSs the framework may be ported in future (I know, it's unlikely) and what their validity rules are.

I could certainly see adding some additional checking, like ensuring the name doesn't include a SPACE, or is 8.3 or something, but other than that you're just wasting your time.

This is a wheel best not reinvented.
AnswerRe: How to check a string to see if it’s valid for use in creating a file name Pin
PIEBALDconsult21-Aug-07 12:14
mvePIEBALDconsult21-Aug-07 12:14 
GeneralRe: How to check a string to see if it’s valid for use in creating a file name Pin
Brady Kelly21-Aug-07 19:29
Brady Kelly21-Aug-07 19:29 
QuestionWindow like left-menu Pin
Muhammad Nauman Yousuf21-Aug-07 6:59
Muhammad Nauman Yousuf21-Aug-07 6:59 
AnswerRe: Window like left-menu Pin
martin_hughes21-Aug-07 9:26
martin_hughes21-Aug-07 9:26 
GeneralRe: Window like left-menu Pin
Muhammad Nauman Yousuf21-Aug-07 17:55
Muhammad Nauman Yousuf21-Aug-07 17:55 
Questionxml file export leaves web page open?? Pin
Venkatesh.P21-Aug-07 6:57
Venkatesh.P21-Aug-07 6:57 
QuestionHow do i draw a smooth linie [modified] Pin
MarkPhB21-Aug-07 6:29
MarkPhB21-Aug-07 6:29 
AnswerRe: How do i draw a smooth linie Pin
Mark Churchill21-Aug-07 19:04
Mark Churchill21-Aug-07 19:04 
GeneralRe: How do i draw a smooth linie Pin
MarkPhB22-Aug-07 7:01
MarkPhB22-Aug-07 7:01 
QuestionAccessing App.Config file Pin
Sha Sea21-Aug-07 6:24
Sha Sea21-Aug-07 6:24 
AnswerRe: Accessing App.Config file Pin
kubben21-Aug-07 7:43
kubben21-Aug-07 7:43 
GeneralRe: Accessing App.Config file Pin
Sha Sea21-Aug-07 10:29
Sha Sea21-Aug-07 10:29 
QuestionInput text function Pin
AndrusM21-Aug-07 6:18
AndrusM21-Aug-07 6:18 
AnswerRe: Input text function Pin
snorkie21-Aug-07 7:15
professionalsnorkie21-Aug-07 7:15 
QuestionHow to Insert User Control into DataGrid Cell ? Pin
ArunkumarSundaravelu21-Aug-07 6:14
ArunkumarSundaravelu21-Aug-07 6:14 
AnswerRe: How to Insert User Control into DataGrid Cell ? Pin
Hessam Jalali21-Aug-07 9:52
Hessam Jalali21-Aug-07 9:52 
GeneralRe: How to Insert User Control into DataGrid Cell ? Pin
ArunkumarSundaravelu22-Aug-07 4:11
ArunkumarSundaravelu22-Aug-07 4:11 

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.