battle programminga forum for elite programmerswith extreme will powerto sharpen theire skills
 
HomeCalendarFAQSearchMemberlistUsergroupsRegisterLog in
Share | 
 

 vb.net convert array to xy coodinates

Go down 
AuthorMessage
Admin
Admin
avatar

Posts : 120
Join date : 2011-08-01

PostSubject: vb.net convert array to xy coodinates   Fri Dec 08, 2017 2:18 pm

0 to 8 array to 3 by 3 xy plain :

Code:
Private Sub setXY(ByVal n As Integer)
            y = (n + 3) \ 3
            x = (n Mod 3) + 1
        End Sub
tongue

_________________
kurayami no kagi  _____    
Back to top Go down
View user profile http://yotamarker.forumotion.com
 
vb.net convert array to xy coodinates
Back to top 
Page 1 of 1
 Similar topics
-
» Javascript Array
» Convert string (with decimal or a point) to a integer.
» How can I access the elements of a stored array?
» How to convert selenium project into runnable jar file.
» selenium RC

Permissions in this forum:You cannot reply to topics in this forum
battle programmers alliance :: battle programming alliance :: battle programming-
Jump to: