How to determine if a folder is set to default or alternate working folder via SDK?

0 Likes

Problem:

How to determine if a folder is set to default or alternate working folder via SDK?

Resolution:

  • Product Name: StarTeam
  • Product Version: All
  • Product Component: SDK
  • Platform/OS Version: Windows
    Question:

    While using SDK, are there any attributes or methods to determine if a folder"s working folder is set to Default or Alternate?

    Working Folder


    Answer:

    Currently, there are no direct attributes or methods to retrieve the working folder settings in StFolder object. However, this can easily be determined by using existing attributes. Below VB code snippets will demonstrate how this can be done.

    If (folder.PathFragment = folder.AlternatePathFragment)
    "Alternate working folder is enabled
    End If

    If (folder.PathFragment = folder.DefaultPathFragment)
    "Default working folder is enabled
    End If


    Author: Dixon Chan

Old KB# 28788
Comment List
Related
Recommended