The startup parameter values in this list reflect initial parameter value settings. The value of a startup parameter during an ABL session can be different from its initial value setting. Some startup parameters have an equivalent session attribute you can use in ABL code to override the parameter value during a session. If you override a parameter value using an equivalent session attribute, the new value is not reflected in the list of startup parameters returned in this attribute.
The default parameter file (startup.pf) always appears in the list. The AVM expands the filename of only the default parameter file. All other filenames appear in the list as specified.
-parameter-name[ parameter-value][,-parameter-name[ parameter-value]]...
|
You can use the ENTRY function to parse the list of startup parameters. If you use the ENTRY function with the default delimiter (comma), the function separates the parameter entries wherever a comma appears. If a comma appears in the list as part of a parameter value, the function might not parse the list correctly. A comma separating two startup parameters, as opposed to being part of a parameter value, is always followed by
"-" or
"(end .pf)". Based on this convention, you can examine the character(s) after a comma to determine whether the comma is separating two startup parameters or is part of a parameter value.
Table 107 shows examples of original command lines and their equivalent STARTUP-PARAMETERS attribute values.
|
|
prowin32 -db sports2000 -T c:\temp -H pclsmith -S 5000
Where startup.pf contains no startup parameters
|
-pf c:\dlc\startup.pf,(end .pf),-db sports2000,-T c:\temp,-H pclsmith,-S 5000
|
prowin32 -T c:\temp
Where startup.pf contains:
-db sports2000 -H pclsmith -S 5000
|
-pf c:\dlc\startup.pf,-db sports2000,-H pclsmith,-S 5000,(end .pf),-T c:\temp
|
prowin32 -pf dbconnect.pf -T c:\temp
Where startup.pf contains no startup parameters and dbconnect.pf contains:
-db sports2000 -H pclsmith -S 5000
|
-pf c:\dlc\startup.pf,(end .pf),-pf dbconnect.pf,-db sports2000,-H pclsmith,-S 5000,(end .pf),-T c:\temp
|
prowin32 - -T d:\work100a -db mystore -1 -db corporate -H corpmachine -S 5000
Where startup.pf contains:
-T c:\temp
|
-pf c:\dlc\startup.pf,-T c:\temp,(end .pf),-T d:\work100a,-db mystore,-1,-db corporate,-H corpmachine,-S 5000
|
prowin32 -U lsmith -P mypassword
Where PROSTARTUP=c:\commonarea\dbconnect.pf and c:\commonarea\dbconnect.pf contains:
-db sports2000 -H pclsmith -S 5000
|
-pf c:\commonarea\db.pf,-db sports2000,-H pclsmith,-S 5000,(end .pf),-U lsmith,-P ******
|