Delphi Pages Forums  

Go Back   Delphi Pages Forums > Delphi Forum > General

Lost Password?

Reply
 
Thread Tools Display Modes
  #1  
Old 10-06-1999, 10:32 PM
N/A
Guest
 
Posts: n/a
Default file association

when i have associated a file with my program how do i the make my application to perform a task with tat file

EX. *open a txt file in a memo
Reply With Quote
  #2  
Old 10-07-1999, 04:30 PM
N/A
Guest
 
Posts: n/a
Default RE: file association

procedure TmainDlg.FormCreate(Sender: TObject);

Var

*FileThatYouDoubleClickedOn : String;

Begin

FileThatYouDoubleClickedOn := ParamStr[1];

* // Process file as you usually do

End;



Also..have a look in the help file for

ParamCount and ParamStr.
Reply With Quote
  #3  
Old 10-07-1999, 09:32 PM
N/A
Guest
 
Posts: n/a
Default But if

What if the user opens the associated file in windows explorer

and i want to do something with it?
Reply With Quote
  #4  
Old 10-11-1999, 12:15 PM
N/A
Guest
 
Posts: n/a
Default RE: But if

???



I'mnot sure if I follow what you're trying to do. If you email me and example of what you need to do, I can help
Reply With Quote
  #5  
Old 10-12-1999, 12:43 AM
N/A
Guest
 
Posts: n/a
Default What im trying to do is....

i have associated a file in windows explorer with my program

when the user executes the file from windows explorer how do i then make my application to perform a task with that file

EXAMPLE. Open My associated file in a memo
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT. The time now is 10:31 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.