PdcApplication.TranslateToLocalPath: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| Line 4: | Line 4: | ||
== Description == | == Description == | ||
This function is useful in the cloud.<BR> | This function is useful in the cloud.<BR> | ||
It converts a path(like 'C:\Program Files' or 'C:\Program Files\test.txt') to a local path on the machine of the user. | It converts a path(like 'C:\Program Files' or 'C:\Program Files\test.txt') to a local path on the machine of the user.<BR> | ||
- if GraphOn is used in the Cloud, it will return the localpath from the cloud point of view. | - if GraphOn is used in the Cloud, it will return the localpath from the cloud point of view.<BR> | ||
- if tsclient is used it will return the converted path with '\\tsclient' in front. | - if tsclient is used it will return the converted path with '\\tsclient' in front.<BR> | ||
== Code example == | == Code example == | ||
Latest revision as of 12:17, 12 June 2026
Declaration
TranslateToLocalPath(strPath)
Description
This function is useful in the cloud.
It converts a path(like 'C:\Program Files' or 'C:\Program Files\test.txt') to a local path on the machine of the user.
- if GraphOn is used in the Cloud, it will return the localpath from the cloud point of view.
- if tsclient is used it will return the converted path with '\\tsclient' in front.
Code example
This example shows how to get the localpath to a file or folder
Dim strPath As String = 'C:\Program Files\test.txt'
strPath = PDC.App.TranslateToLocalPath(strPath)
//Result should be that strPath is now '\\tsclient\C\Program Files\test.txt' if GraphOn is not used.
Availability
Available since August 2025(From version 2025.2.7.0)