Главная страница | назад





Article #15835: Getting command-line arguments in BCB

 Question and Answer Database
FAQ835C.txt Getting command-line arguments in BCB
Category :VCL
Platform :All
Product :C++Builder 1.x
Question:
How can I access the list of parameters passed at the command
line with BCB?
Answer:
You can use the following code:
for (int x=0; x <= ParamCount(); x++)
ShowMessage(ParamStr(0));
ParamStr(0) will return the fully qualified name of the
executable file.
7/2/98 10:32:32 AM

Last Modified: 01-SEP-99