[AccessD] CurrentProject.Path syntax?

Gustav Brock Gustav at cactus.dk
Thu Mar 18 04:10:05 CDT 2010


Hi Max

This thread demonstrates yet another reason to turn to something more clever.
In Visual Studio (dotNet) this is done in one line which tells it all:

  someFile = Path.Combine(somePath, someFileName);

freeing your valuable time from low-level stuff like if a backslash is present or not.

/gustav


>>> max.wanadoo at gmail.com 17-03-2010 22:45 >>>

Bit more complicated.

    str = "\\svr\c\"
    strL = Left(str, 2)
    strR = Replace(Mid(str, 3) & "\", "\\", "\")
    str = strL & strR

Max






More information about the AccessD mailing list