Project properties

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

NameProperty IDDescription
PR_TruncateSQL1The library should truncate output SQL file before each project execution in case this value is non-zero.
PR_TruncateTXT2The library should truncate output text file before each project execution in case this value is non-zero.
PR_TruncateXML3The library should truncate output XML document before each project execution in case this value is non-zero.
PR_ToFile4Create output SQL script when this property is non-zero.
PR_ToTxtFile5Create output text file when this property is non-zero.
PR_ToXMLFile6Create output XML document when this property is non-zero.
PR_TxtOutColumnNames7The library should write column names to text file when this property is non-zero.
PR_AddCommit8The library should add COMMIT statements to output SQL script in case this value is non-zero.
PR_NoExec9The library will not modify database and create output file(s) only in case this value is non-zero.
PR_QuoteExportString10For output text file this property switches quotation node. All strings will be quoted when this property is non-zero.
PR_sqlBefore11SQL script that will be executed before project. ';' or 'go' separator required for complex scripts.
PR_sqlAfter12SQL script that will be executed after project. ';' or 'go' separator required for complex scripts.
PR_SQLFile13File name for SQL output.
PR_TXTFile14File name for text output.
PR_XMLFile15File name for XML output.
PR_StmtDelimiter16SQL statement delimiter for SQL output.
PR_TxtDelimiter17Text items delimiter for text output.