App Inventor does not have the capability to dynamically generate any objects, that includes Labels and TextBoxes.
You cannot 'generate' 5 labels. The labels you use have to be created in the Designer.
If you want to use 5 labels, you have to create 5 labels on the Designer. To work around this limitation,
you can hide some of the labels and only show them when needed. Label1.visible to false to hide, set to true to display.
Alternatively you can use a List of 5 things, then use a ListView to display them (when displayed in a ListViewer, they 'look'
a little like 5 labels placed one above another.
Regards,
Steve