Returns an array of type String, containing the mailing labels of currently selected addresses in databox listview.
This is a convenience function in order to quickly retrieve address labels for printing. ListboxAddresses in Databox must contain records in order to make this work.
Returns:
Type |
Value |
Description |
String |
Array |
One dimensional array containing strings. Each string can be a multiline text, which is a mailing label of an address. |
Available in:
WindowMain |
WindowLink |
YES |
NO |
Used in:
XojoScript Name |
GUID |
Print 24 labels on A4 from addresslist |
51EEF5D2-24F3-413E-B82A-A3FC791EB73F |
Print 24 labels of 1 address |
ADF92843-E182-4410-B77D-70A7F4206B01 |
Example XojoScript:
// print labels A4, from addresslist
Dim labels() As String
// Retrieve address labels of selected addresses into array
labels = GetAddressLabels
// Get number of records retrieved
Dim ub As Integer = Ubound(labels)
If ub < 0 Then
MsgBox "No addresses are selected!"
Return // Abort here, as we have no records to print
End If
// Define variables
Dim i As Integer
Dim myList As String
Dim delimiter As String = "}{"
// Create a text 'myList' which contains the labels,
// each separated with a delimiter from the next one
For i = 0 to ub
If i > 0 Then
myList = myList + delimiter
End If
myList = myList + labels(i)
Next
// Run AppleScript with labels in text 'myList'
DoScript("WordAddressLabels.scpt",myList,delimiter)