Function PropertyTenantsList

Gets a object of data about Tenants for a Property

PropertyTenantsList([PROPCODE],[CONCODE],[GETMETHOD],[SEPARATOR1],[SEPARATOR2],[EXPRESSION],[EXCLUDEBLANKS])

Parameters

#TypePassingDefaultNameDescription/Comments
1stringrequiredn/aPROPCODEThe property code to get Tenant data for
2stringoptionalBlankCONCODEThe Tenancy/Contract code to get Tenant data for
3integeroptional1GETMETHODMethod to use to get data
GETMETHODDescription
0Just names
1Just names
2Names with line characters above
3Name/Email/Phone tabbed
4Use data expression from [EXPRESSION]
4stringoptionalDepends on GETMETHODSEPARATOR1Separator normal e.g. ", "
5stringoptionalDepends on GETMETHODSEPARATOR2Separator last e.g. " and "
6stringoptionalblankEXPRESSIONData expression. Must be in format CLIENT. for fields required. e.g. alltrim(CLIENT.FNAME)+' '+alltrim(CLIENT.SNAME)
7booleanoptionalfalseEXCLUDEBLANKSExclude blank values

Returns

The string required


Examples

Will get the property/contract tenants specified fisrt and last name together, separated with comma except the last one with and. Leave out blank names.

[[PropertyTenantsList(PROPCODE,CONCODE,2,", ","and ","alltrim(CLIENT.FNAME)+' '+alltrim(CLIENT.SNAME)",.T.)]]