|
-
Nov 28th, 2016, 05:58 PM
#1
Thread Starter
Lively Member
ranking textboxes
I have five textboxes that contain tendered prices. tbAAH, tbCol, tbDE, tbLex, tbUni.
I need to rank these from lowest to highest, allowing for the fact that
a) some may be empty
b) some may contain the same prices
in other words:
tbAAH.text contains 14.67 this would be number 5
tbCol contains 10.95 therefore this would be number 2
tb DE contains 10.95 but this would also be number 2
tbLex contains 9.85 therefore this would be number 1
tbUni contains 13.17 this would be number 4
The above assumes that each tb is populated, but it could equally be that two of the boxes are empty.
I've tried putting them into an array and using Array.sort and it kinda works; but doesn't allow for the situations mentioned above.
Can anyone help?
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|