displaying text while the program is loading

BlitzPlus Forums/BlitzPlus Beginners Area/displaying text while the program is loading

it would be easier with select:
loading% = True, index% = 1, totalindex% = 5
Repeat
	UpdateLoadingBar(Float index% / totalindex%)
	index% = index% + 1
	
	Select index%
		Case 1
			LoadImage()
		Case 2
			LoadSound()
		Case 3
			LoadSomeMore()
		Case 4
			LoadEvenMore()
		Case 5
			loading% = False
	End Select
Until Not loading%