N N1c0_ds Active Member Licensed User Jan 18, 2009 #1 I would like to set a new file association for my program but I couldn't find instructions on how to do it, only programs that do the job. It would use a unique file type (renamed text file) that would have its own icon. Then how is it interpreted by the application? Thanks in advance!
I would like to set a new file association for my program but I couldn't find instructions on how to do it, only programs that do the job. It would use a unique file type (renamed text file) that would have its own icon. Then how is it interpreted by the application? Thanks in advance!
Erel B4X founder Staff member Licensed User Longtime User Jan 18, 2009 #2 Follow the code in this post: http://www.b4x.com/forum/code-sampl...ation-basic4ppc-source-code-files-device.html
Follow the code in this post: http://www.b4x.com/forum/code-sampl...ation-basic4ppc-source-code-files-device.html
N N1c0_ds Active Member Licensed User Jan 18, 2009 #3 What's with the application side handling? How can I know what file was launched?
Erel B4X founder Staff member Licensed User Longtime User Jan 18, 2009 #4 The file is passed as the first argument: B4X: Sub App_Start If ArrayLen(args()) > 0 then LaunchedFile = args(0) ... End If
The file is passed as the first argument: B4X: Sub App_Start If ArrayLen(args()) > 0 then LaunchedFile = args(0) ... End If