I have an app that has lines that have worked without fail for years, using LAUNCH to open up a .jpg stored on a local drive, Apple MAc. BUT but LAUNCH is no longer viable, quote:
This item was deprecated in version 2019r2.1.
Please use FolderItem.Open as a replacement.
However, Open does not work, it calls an exception and the app crashes raising an IOEXCEPTION number 256.
I have no idea what to change as the online documentation for OPEN seems to be a simple substitution of OPEN for LAUNCH, and I don't see in documentation for using OPEN instead of LAUNCH where I need to change any other lines. ANY advice greatly appreciated, I am not a sophisticated programmer, this is a little home app for my own use, but its extremely useful to me.
Dim FormatMe As String
Dim dbFile As FolderItem
FormatMe = txtXPath.text
dbFile = GetFolderItem(FormatMe,FolderItem.PathTypeShell)
if dbFile <> nil and dbFile.exists then
dbFile.launch ////// / IF I USE dbfile.open INSTEAD, AN EXCEPTION IS RAISED. AN OLDER (COMPILED) VERSION WORKS, BUT IT IS NOW FROZEN AS IS.
MsgBox "Thud, Did not find File: " + FormatMe