Venice
Project::UsesFirm
 
Is the given firm used in this project (header or details)?
 
VARIANT_BOOL UsesFirm (
    enum eFirmType eFirmType,
    LONG lFrmNum,
    LONG lFrmSubNum
)
 
Parameters
eFirmType
[in] A value of the 'eFirmType' enumeration.
lFrmNum
[in] The number of the firm you want to know the use of in the current project
lFrmSubNum
[in] The subnumber of the firm you want to know the use of in the current project
 
Return value
True if the firm is used in the current project (either in the header or in the details), otherwise false.
 
See Also
CreateProject
 
Samples
 
C++
 
// Check if the customer with number 12/0 is used in the current project
if (pProject->UsesFirm (ftCustomer, 12, 0))
    // Process record data

C#
 
// Check if the customer with number 12/0 is used in the current project
if (oProject.UsesFirm (eFirmType.ftCustomer, 12, 0))
    // Process record data

VBS
 
' Check if the customer with number 12/0 is used in the current project
If oProject.UsesFirm(ftCustomer, 12, 0) Then
    ' Process record data
End If

VB.NET
 
' Check if the customer with number 12/0 is used in the current project
If oProject.UsesFirm(eFirmType.ftCustomer, 12, 0) Then
    ' Process record data
End If