Click here to Skip to main content
15,890,512 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
VB
If pos(9)=16 Then
            j=9
            pos(j)=pos(i)
            pos(i)=16
            Imgstr(i)=NumberFormat(pos(i),2,0) & imw & ".png"
            Img(i).Bitmap=LoadBitmap(File.DirAssets,Imgstr(i))
            Imgstr(j)=NumberFormat(pos(j),2,0) & imw & ".png"
            Img(j).Bitmap=LoadBitmap(File.DirAssets,Imgstr(j))
            moves=moves+1
        End If

Posted
Comments
George Jonsson 30-Oct-15 1:33am    
You have left out the loops where i and j are set, so it is a bit difficult to tell what is going on.
What specifically is it you don't understand?
Is the statement j=9 a show stopper for you? ;-)
Richard MacCutchan 30-Oct-15 5:57am    
It uses some parameters to create a filename and then loads that file into a Bitmap. I suspect it may be part of a game program.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900