NativePath vs. AbsolutePath
- AbsolutePath
For Mac the old MacClassic style for paths with semicolon as divider. For Windows and Linux this is native path. - NativePath, the native path for the OS, so you get the POSIX style path on MacOS. Same as absolute path for Linux and Windows. Introduced with Xojo 2013.
- ShellPath, the escaped path for use in shell commands with shell class.
#If RBVersion < 2013 Then
MsgBox "Failed to create file " + f.AbsolutePath
#Else
MsgBox "Failed to create file " + f.NativePath
#EndIf
MsgBox "Failed to create file " + f.AbsolutePath
#Else
MsgBox "Failed to create file " + f.NativePath
#EndIf
But it is very annoying to write #If into hundreds of projects.
We got a nice idea to keep projects compiling in Real Studio (doesn't know NativePath) and the future Xojo versions (doesn't know AbsolutePath): Via plugin we add NativePath for Real Studio. All our projects can use NativePath and compile in older/newer versions.
So if you have AbsolutePath in the projects, it may be a good idea to replace it! Same for PathTypeAbsolute.