Some barcode types like QR-Code support structured appends. That means you can have a series of barcodes and carry metadata to identify them as belonging to the same series. And each of them carries the index within the series and the number of barcodes in total. For example you may have 1 or 3, 2 or 3 and 3 or 3.
Our MBS Xojo Barcode Plugin handles this with the ZintStructuredAppendMBS class in conjunction with the BarcodeGeneratorMBS class. There you have the properties to define index, count and the ID for thes series. The index is one based up to the value in count. Please note that the ID is limited to a few characters or numbers and this depends on the barcode type.

Structured append is supported for PDF 417, MaxiCode, QR-Code, DataMatrix, Micro PDF 417, Aztec, HIBC, Dot Code, CodeOne, GridMatrix and Ultra barcode types.
Structured append metadata is only useful if the barcode scanner or decoding software supports structured append and recombines the symbols automatically.
Here is an example that creates three barcodes:
For i As Integer = 1 to 3
Var z As New BarcodeGeneratorMBS
Var o As New ZintStructuredAppendMBS
o.Index = i
o.Count = 3
o.ID = "123"
z.Symbology = z.BarcodeQrcode
z.StructuredAppend = o
z.Encode "Barcode "+i.toString+"/3"
Var error as integer = z.LastError
Var pic As Picture = z.picture
Var file As FolderItem = SpecialFolder.Desktop.Child("barcodeserie"+i.ToString+".jpg")
pic.Save(file, pic.SaveAsJPEG)
Next
Please try the class with MBS Xojo Plugins 26.0 or later. If you implement TarDoc in Swiss for Tiers-Garant Rechnungen, you may need this to make the required barcodes.