Results 1 to 37 of 37

Thread: Finding the closest next greater value from multiple textboxes

Threaded View

  1. #1

    Thread Starter
    Member
    Join Date
    Nov 2014
    Posts
    58

    Finding the closest next greater value from multiple textboxes


    I'm trying to code a simple program that scan the greater next value from textbox10 to the following boxes 1 to 9 and the greater value should be placed in textbox11.

    Example:

    Text1 = 4
    Text2 = 0
    Text3 = 1
    Text4 = 9
    Text5 = 2
    Text6 = 9
    Text7 = 9
    Text8 = 3
    Text9 = 1

    Text10 = 9
    Textbox11 = 0

    The value of textbox10 should scan and find the next greater value from box1 to box9 and copy it in textbox11. Must scan in 0 to 9 order like the example above after 9 is "0" and if the zero wasn't there the answer should be "1" it doesn't matter if it repeats twice. The scan should always be in this order
    0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 etc, etc..
    Last edited by CoderVB; Sep 25th, 2019 at 01:21 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width