Function AddressMatrix
Outputs an address in a specific format for a client
AddressMatrix([MATRIX_CODE],[BREAK_STYLE],[DATATABLE],[PREFIX])Parameters
| # | Type | Passing | Default | Name | Description/Comments | ||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | string | optional | 100111121 | MATRIX_CODE | The address matrix code where: "000111121" - this is the default without building names with no House/Flat numbers "100111121" - this is the default with building names with no House/Flat numbers
| ||||||||||||||||||||||||||||||
| 2 | integer | optional | 0 | BREAK_STYLE | The break style: 0 = Comma, 1 = Space, 2 = New Line, 3 = Html Br | ||||||||||||||||||||||||||||||
| 3 | string | required | n/a | DATATABLE | The name of the data table e.g. PROPERTY or alias() | ||||||||||||||||||||||||||||||
| 4 | string | required | n/a | PREFIX | Address fields prefix. "" for normal address, For Branch "R" for registered address and "B" for bank address |
Returns
The address for display
Examples
Display the full property address for the specific record
AddressMatrix("1111111111",0,"PROPERTY","")Display the full registered address from branch
AddressMatrix("1111111111",0,"BRANCH","R")Display the property address without building names/House number/Flat number
AddressMatrix("000111121",0,"PROPERTY","")Display the full address for this specific record - must have address fields. This is generic and so can be used it lots of places.
AddressMatrix("1111111111",0,alias(),"")
