|
GetProjectProperty retrieves selected project
property.
C/C++
char *GetProjectProperty(PRJ_HANDLE handle,int PropertyID)
C#
string GetProjectProperty(int handle,int PropertyID)
SetProjectProperty sets or changes specified project
property.
C/C++
int SetProjectProperty(PRJ_HANDLE handle, int PropertyID, char
*value)
C#
int SetProjectProperty(int handle, int PropertyID, string
value)
Returns:
0 - executes successfully.
-1 - invalid handle
-2 - passed handle does not allocated.
-4 - unknown property ID.
COM object offers "ProjectProperty" string property for
described functions. You should not use "SetProjectProperty" and
"GetProjectProperty" functions directly in this case.
Property definitions
| Name |
Property ID |
Description |
| PR_TruncateSQL |
1 |
The library should truncate output SQL file before each project
execution in case this value is non-zero. |
| PR_TruncateTXT |
2 |
The library should truncate output text file before each
project execution in case this value is non-zero. |
| PR_TruncateXML |
3 |
The library should truncate output XML document before each
project execution in case this value is non-zero. |
| PR_ToFile |
4 |
Create output SQL script when this property is non-zero. |
| PR_ToTxtFile |
5 |
Create output text file when this property is non-zero. |
| PR_ToXMLFile |
6 |
Create output XML document when this property is non-zero. |
| PR_TxtOutColumnNames |
7 |
The library should write column names to text file when this
property is non-zero. |
| PR_AddCommit |
8 |
The library should add COMMIT statements to output SQL script
in case this value is non-zero. |
| PR_NoExec |
9 |
The library will not modify database and create output file(s)
only in case this value is non-zero. |
| PR_QuoteExportString |
10 |
For output text file this property switches quotation node. All
strings will be quoted when this property is non-zero. |
| PR_sqlBefore |
11 |
SQL script that will be executed before project. ';' or 'go'
separator required for complex scripts. |
| PR_sqlAfter |
12 |
SQL script that will be executed after project. ';' or 'go'
separator required for complex scripts. |
| PR_SQLFile |
13 |
File name for SQL output. |
| PR_TXTFile |
14 |
File name for text output. |
| PR_XMLFile |
15 |
File name for XML output. |
| PR_StmtDelimiter |
16 |
SQL statement delimiter for SQL output. |
| PR_TxtDelimiter |
17 |
Text items delimiter for text output. |
|