Results 1 to 3 of 3

Thread: Recent File String

  1. #1

    Thread Starter
    Addicted Member VB6Coder's Avatar
    Join Date
    Apr 2001
    Location
    Northampton, UK
    Posts
    185

    Question Recent File String

    I can remember seeing an API that converted a filename
    (e.g. C:\Program Files\Microsoft Office\Templates\Presentation Designs\Blue Diagonal.pot)
    to a shorter version of the filename
    (e.g. c:\Program Files\...\Blue Diagonal.pot)
    so it could be displayed in a Recent File list.

    Can anyone remember which API does this?


    Cheers

  2. #2
    Megatron
    Guest
    Since I do not have VB on this machine, I can't look in my API viewer, but another suggestion is to create your own with the Split() function.

    VB Code:
    1. vList = Split(sPath)
    2. sShortPath = vList(0) & "\" & vList(1) & "\" & "..." & "\" & UBound(vList)

  3. #3

    Thread Starter
    Addicted Member VB6Coder's Avatar
    Join Date
    Apr 2001
    Location
    Northampton, UK
    Posts
    185
    I know how to write one myself, but I want to use the API.

    Does anyone know what the API is called?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width