My program could have been opened one of two ways to view a file.
The operator could start the application and then load a file, or another B4PPC App could have started the App and passed it the filename to open.
I was using...
If ArrayLen( Args( ) ) > 0 Then FilePath = Args( 0 )
But my file name contains spaces and so it was recieved as three seperate args.
For the time being I'm doing this...
If ArrayLen( Args( ) ) > 0 Then FilePath = AppPath & "\" & Args( 0 ) & " " & Args( 1 ) & " " & Args( 2 ) & Args( 3 )
As you can see, I'm having to build the filename and re-insert the spaces for it to work.
Regards,
RandomCoder