• String Manipulation (A2K)

    • This topic has 2 replies, 2 voices, and was last updated 17 years ago.
    Author
    Topic
    #450811

    I have files that are named in the following fashion:

    ABC_123_456.txt

    I want to capture the entire name LESS the “.txt”. How can I do this?

    I know it will require string manipulation but can’t quite get it together.

    Viewing 0 reply threads
    Author
    Replies
    • #1108479

      If you have a string variable strFile that contains the file name, you can use

      Left(strFile, InStr(strFile, ".") - 1)

      This assumes that the period (point) before txt is the only one in the name.

    Viewing 0 reply threads
    Reply To: String Manipulation (A2K)

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: