OpenDialog

In an opendialog component, when doing AnsiString a=OpenDialog1->Filename ,we get the path to the file selected + also the name of the file.
How do I get only the name of the file?

Comments

  • : In an opendialog component, when doing AnsiString a=OpenDialog1->Filename ,we get the path to the file selected + also the name of the file.
    : How do I get only the name of the file?
    See http://codepedia.com/1/CppBuilderNewbieCodeSnippets for String manipulation examples or check the header StrUtils.hpp and SysUtils.hpp for a function called 'GetFilePath()' or something like it.

    Good luck,

    bilderbikkel

  • : : In an opendialog component, when doing AnsiString a=OpenDialog1->Filename ,we get the path to the file selected + also the name of the file.
    : : How do I get only the name of the file?
    : See http://codepedia.com/1/CppBuilderNewbieCodeSnippets for String manipulation examples or check the header StrUtils.hpp and SysUtils.hpp for a function called 'GetFilePath()' or something like it.
    :
    : Good luck,
    :
    : bilderbikkel
    :
    : Thanks a lot for your help. We have been able to do it.

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories