Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Andy Kramek
  Where is Andy Kramek?
 Hot Springs Village
 Arkansas - United States
 Andy Kramek
 To: Dave Dawson
  Where is Dave Dawson?
 Casper
 Wyoming - United States
 Dave Dawson
 Tags
Subject: RE: Command Line parameters
Thread ID: 112263 Message ID: 112266 # Views: 1 # Ratings: 1
Version: Visual FoxPro 9 Category: General VFP Topics
Date: Monday, November 06, 2006 10:45:45 PM         
   


Hi Dave

> How do I capture command line parameters when my vfp application is launched with them?
>
> I want to launch my diff.exe as the default diff program in sourcegear Vault, and capture the paths to the left and right files.


As Ken has told you, just use an LPARAMETERS statement in the main program.

One word of caution, command line parameters are always passed as character strings, so if you ever need a numeric (or date) value, then you will need to explicitly convert in the receiving program.

Regards
Andy Kramek
Microsoft MVP (Visual FoxPro)
Tightline Computers Inc, Akron Ohio, USA

ENTIRE THREAD

Command Line parameters Posted by Dave Dawson @ 11/6/2006 10:06:39 PM
RE: Command Line parameters Posted by Ken Murphy @ 11/6/2006 10:32:59 PM
RE: Command Line parameters Posted by Bernard Bout @ 11/7/2006 4:50:04 AM
RE: Command Line parameters Posted by Ken Murphy @ 11/7/2006 12:31:10 PM
RE: Command Line parameters Posted by Dave Dawson @ 11/7/2006 6:53:00 PM
RE: Command Line parameters Posted by Andy Kramek @ 11/6/2006 10:45:45 PM