Click to See Complete Forum and Search --> : Insert data to form when associate file got DbClick


chunmeng
May 23rd, 1999, 09:26 PM
Hi,
I had associate a file extension with my app. When user double click the file, my application will be call out. Anyway, i can't figure out how to retrieve data from that file when that DClick event happen and read it at my app load time.
Note : i'm thinking of using Open FileName for Input as ... but i don't know how can my app know the filename of file being DClick.

Sorry for my bad English.
Thanks for Helping. :)

Ravi Kiran
May 23rd, 1999, 09:55 PM
Hi,
When Windows calls (your) application assosicated with a perticular File extention, it provides the file name as command line parameter .

So, to get the name of the file on which DbleClick occured, look at Command$ , environment vairable.
Just print Command$ and see if you get the file name.
Use Debug.print Command$ in your startup form's form load.

Ravi