Listboxes populated via Folder.find

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • RileyBob
    Forum Member
    • Apr 2005
    • 3

    Listboxes populated via Folder.find

    Hello all

    I'm still trying to get into the swing of things with AMS, and I'm running into a little problem with the listbox object. I've managed to have it autopopulate based on a Folder.find command on load, but I'd really like to do away with the whole path being displayed...rather than "C:\Stuff\Your Directory Name" I'd like to just display "Your Directory Name"....any ideas on how I could accomplish this???? Any help is much appreciated!!!!!
  • Sie Tjin Kian
    Forum Member
    • Dec 2004
    • 18

    #2
    Solution

    Hi RileyBob,
    you can use the String.SplitPath() function. That splits a path to drive, folder, file and filextension. Then you can use the String functions to delimite the foldername.
    greez Tjin

    Comment

    Working...
    X