Using Win32 functions in Visual FoxPro Image Gallery
Process and Thread
..msdn
AssignProcessToJobObject
CommandLineToArgvW
CreateJobObject
CreateProcess
CreateProcessAsUser
CreateProcessWithLogonW
ExitProcess
FreeEnvironmentStrings
GetCommandLine
GetCurrentProcess
GetCurrentProcessId
GetCurrentThread
GetCurrentThreadId
GetEnvironmentStrings
GetEnvironmentVariable
GetPriorityClass
GetProcessIoCounters
GetProcessTimes
GetProcessVersion
GetStartupInfo
GetThreadPriority
IsWow64Process
OpenProcess
RegisterServiceProcess
SetEnvironmentVariable
SetPriorityClass
SetThreadPriority
Sleep
TerminateJobObject
TerminateProcess
WinExec
Code examples:
Converting command-line string to a set of Unicode argument strings
Retrieving the command line for the VFP session
GetCommandLine
    Add comment     W32 Constants      Translate this page
Returns a pointer to the command-line string for the current process.
Code examples:
Converting command-line string to a set of Unicode argument strings
Retrieving the command line for the VFP session
Declaration:
LPTSTR GetCommandLine(VOID);
FoxPro declaration:
DECLARE INTEGER GetCommandLine IN kernel32
Parameters:
This function has no parameters
Return value:
The return value is a pointer to the command-line string for the current process
My comment:
SYS(16), SYS(2019), and PCOUNT() all give same amount of information about the command line. May be for the VPF3 there is no other way to define a configuration file name but using this function.

There is another difference. GetCommandLine keeps its data as long as the process is running, whereas using native VFP functions you must store the input parameters in global variables, if you want to reach them later.

See also: CommandLineToArgvW
Word Index links for the GetCommandLine :
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2001-07-19 12:00:00
Modified: 2013-10-17 21:59:46
Visited in last 7 days: 37
User Contributed Notes:
There are no notes on this subject.


Copyright 2001-2017 News2News, Inc. Before reproducing or distributing any data from this site please ask for an approval from its owner. Unless otherwise specified, this page is for your personal and non-commercial use. The information on this page is presented AS IS, meaning that you may use it at your own risk. Microsoft Visual FoxPro and Windows are trade marks of Microsoft Corp. All other trademarks are the property of their respective owners. 

Privacy policy
Credits: PHP (4.4.9), an HTML-embedded scripting language, MySQL (5.6.37), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (54.146.59.207)
2 sec.Function: 'GetDesktopWindow'
5 sec.Function: 'FillConsoleOutputAttribute'
8 sec.Function: 'GetLongPathName'
11 sec.
Function group: 'GDI+ StringFormat'
14 sec.Function: 'CeReadFile'
17 sec.Function: 'GdipDeleteStringFormat'
21 sec.
Function group: 'Desktop Window Manager (DWM)'
23 sec.Function: 'CreateVirtualDisk'
26 sec.
Function group: 'Window Station and Desktop'
29 sec.Function: 'CeEnumDBVolumes'
Google
Advertise here!