Indigo Rose Software

Professional Software Development Tools

 
+ Reply to Thread
Results 1 to 2 of 2

Thread: String.Split

  1. #1
    Join Date
    May 2001
    Posts
    27

    String.Split

    -- f_AppDir is equal to F:\md It is assigned by the user

    v_PFPROG = f_AppDir
    v_Path = String.SplitPath(f_AppDir);
    -- For some reason this was parsing to \ instead of \md
    v_AppJustDir = v_Path.Folder
    Debug.Print("f_AppDir="..f_AppDir.."v_AppJustDir=" ..v_AppJustDir.."\r\nv_Path.Drive=".. v_Path.Drive .."v_Path.Folder = "..v_Path.Folder.."\r\n")


    For some reason v_AppJustDir is equal to \ instead of \md

    Do I have to change the pathing to have \\ instead of \ for String.SplitPath() to work?

    If so, how do I do that? I did not formulate the value of f_AppDir - it was resolved from the user input.

  2. #2
    Join Date
    Jan 2001
    Location
    Anderson Island, WA, USA
    Posts
    2,863
    The function has limited ways to tell if it's a file or folder.

    to force a folder in splitpath, append a trailing '\' to it.


    (Click here to contact me)
    Providing Independent Professional Consulting Services for
    IndigoRose products, World Wide.
    Located in -8:00 (-7:00 DST) GMT Timezone (Western United States)

Tags for this Thread

Posting Permissions

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