I have about 100 images: icon_000, icon_001 to icon_100
A number will be entered and the appropriate icon displayed. Is there any way to Dim, Initialize and use them as a variable, rather than repeating everything 100 times?
maybe it was wrong advice as I thought icon_000 was the filename of the icon.
It all depends on how the app will work, it if just shows 1 icon after a number is entered than the hint is valid
and you can use loadbitmap with 1 imageview and the variable filename instead of 100 imageviews that you hide and just show 1.
Dim icon as imageview
dim nt as string
icon.initialize("")
nt=1
nt="00"&nt
nt=nt.SubString(nt.Length-3)
icon.bitmap=loadbitmap(file.dirassets,"icon_"&nt&".gif")
changing nt to 1, 64 or 397 will always remain in the 3 digit format.
Thank you for that. I will work on it tomorrow, it's past my bedtime.
But thanks for confirming it works, so I know I have to look elsewhere my code for the problem