PdcApplication.TranslateToLocalPath: Difference between revisions

From External Bemet Wiki
Jump to navigation Jump to search
Created page with "== Declaration == TranslateToLocalPath(strPath) == Description == This function takes a path(like 'C:\Program Files' or 'C:\Program Files\test.txt') and based on if GraphOn is used in the Cloud, it will return the localpath from the cloud point of view. If GraphOn is not used it will return with '\\tsclient' in front. == Code example == This example shows how to get the localpath to a file or folder <source lang="vb"> Dim strPath As String = 'C:\Program Files\test.t..."
 
No edit summary
Line 3: Line 3:


== Description ==
== Description ==
This function takes a path(like 'C:\Program Files' or 'C:\Program Files\test.txt') and based on if GraphOn is used in the Cloud, it will return the localpath from the cloud point of view. If GraphOn is not used it will return with '\\tsclient' in front.
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.
- 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 ==
== Code example ==

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)