View Full Version : swapping integers
samjanek
12-18-03, 11:50 AM
hi i'd really love some help as i have three text boxes and i'm am trying to swap them round so that the integers placed into them by the user go into order.
i.e. 1, 2, 3 etc
xsamx
hyjacked
12-19-03, 12:46 PM
write a function that will sort the entries as you wish.
store one value in a temp variable
move the correct variable into that box that has the same value as the temp variable.
move the correct variable into the box that you just moved a variable from.
copy to the temp variable to the correct box.
That should work, hope it helps.
vBulletin® v3.6.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.