Quantcast
Channel: Xojo Programming Forum - Latest topics
Viewing all articles
Browse latest Browse all 3963

Opening a file by code line

$
0
0

Hello,
I’m trying to open a file by giving the code a path to follow. Thanks to your suggestions I’m able to reach any folder not inside a SpecialFolder by coding like this:

OpDg = New OpenDialog

result = “/Users/myHD/FLDR1/FLDR2/FLDR”

OpDg.InitialFolder = new FolderItem (result, FolderItem.PathModes.Native)

I have a DeskTopPopUpMenu letting me choose among three files; what I’d like to do, and failing, is having the code open the chosen file, say myFile.wvr, inside that path.but I do not know how to obtain this. It does not work adding /myFile.wvr at the end of the path.
Maybe I should use an altogether different approach op coding. Any help will be appreciated

Thank you

6 posts - 4 participants

Read full topic


Viewing all articles
Browse latest Browse all 3963

Trending Articles