Re: Common Dialog - Change file extension

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance




"Ian King" <nobody@xxxxxxxxxxx> wrote in message
news:Xns96AEC3A98FB02nobodynowherecom@xxxxxxxxxxxxxxxx
>>
>
> Just one thought...
>
> Your code works if the given file name doesn't contain full path
> (CommonDialog.FileName returns full path to the file).
>
> GetExtension("C:\My Program 1.0\file_without_extension") doesn't return
> an empty string as it should.
>

Good point! Thanks for catching that.

--
Mike
Microsoft MVP Visual Basic


.



Relevant Pages

  • Re: Open HTML Files?
    ... >Mike I had tried your suggestion earlier as well but it doesn't work. ... s1 turns out to be an empty string. ... Prev by Date: ...
    (microsoft.public.vb.general.discussion)
  • Re: So whats null then if its not nothing?
    ... > Hi Mike, ... > Why do you view an empty string as being the same as null? ... It is unless you accept the erroneous definition of NULL as UNKNOWN. ...
    (comp.databases.theory)
  • Re: Who are you?
    ... think my record is pretty outstanding. ... series 1 of American Dad, ... Mike ... Prev by Date: ...
    (uk.sport.football)
  • Style anyone?
    ... it comes up .curzip which my system does not recognise. ... said not life threating or anything just would like to know why I can't use ... Mike ... Prev by Date: ...
    (microsoft.public.windowsxp.perform_maintain)
  • Re: HSMs and the High Cost of Housing
    ... prices on a lot of it seems to have dropped and won't bring anywhere near ... what I paid for it. ... Mike ... Prev by Date: ...
    (rec.crafts.metalworking)