将标准格式转换为 FileMaker 格式路径。
ConvertToFileMakerPath (标准路径 ; 格式)
格式
- 一个指定值,指定标准路径
所在的标准格式(参阅下文)。
文本
19.0
此函数执行 ConvertFromFileMakerPath 的相反操作。格式
参数可以使用与 ConvertFromFileMakerPath 函数中相同的值。
当 FileMaker 路径无法转换为标准格式时,此函数将返回 "?"。
•如果标准路径
不是格式
参数指定的格式,则此函数将返回无效的 FileMaker 路径或 "?"。
•此函数将使用 fmp 架构的 URL 路径转换为带有 fmnet
前缀的 FileMaker 路径。所有其他返回的 FileMaker 路径使用 file
前缀。请参阅关于路径前缀。
ConvertToFileMakerPath ("/Users/John Smith/Documents/test.xlsx" ; PosixPath)
返回:
•file:/Macintosh HD/Users/John Smith/Documents/test.xlsx(在 Mac 上),其中根卷是指定的 Macintosh HD。
•file:/C:/Users/John Smith/Documents/test.xlsx(在 Windows 计算机上),其中引导驱动器是 C。
ConvertToFileMakerPath ("C:\Users\John Smith\Documents\test.xlsx" ; WinPath)
返回 file:/C:/Users/John Smith/Documents/test.xlsx。
在将 $URL 变量中的 URL 转换为 FileMaker 路径后,显示 fmnet:/fmhost.example.com/My Clients.fmp12。
设置变量 [ $URL ; 值: "fmp://fmhost.example.com/My%20Clients.fmp12" ]
显示自定义对话框 [ ConvertToFileMakerPath ($URL ; URLPath) ]