Kind of "customisable" LOOKUP(2), possible?


Closed Thread
Results 1 to 4 of 4

Hybrid View

  1. #1
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    Not sure to follow you

    But how about using always the same big lookup, but using a smaller range for the FOR-TO-NEXT (i.e. Start @ different place, end @ different place)... then make some decision from there?
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  2. #2
    Join Date
    Nov 2005
    Location
    Bombay, India
    Posts
    966


    Did you find this post helpful? Yes | No

    Default

    I think I understood what you want to do. However, I do not think Lookup or even Lookup2 is suitable for this kind of thing. See, the Lookup2 statement expands into an assembly language macro with the parameters coded at 'compile' time.

    Now, a possible solution could be to put the choices into an array. Everytime you pick one choice out of the array, re-pack the array after removing the chosen one. Use a little code to do what Lookup2 does and offer choices from the array.

    Jerson

Similar Threads

  1. Kind of stuck
    By gti_uk in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 31st May 2009, 20:45
  2. LOOKUP2 please help
    By emilhs in forum mel PIC BASIC Pro
    Replies: 19
    Last Post: - 12th May 2009, 23:13
  3. lookup2?
    By jonas2 in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 28th February 2009, 12:26
  4. Lookup2 & Lookdown2
    By saladlee in forum Serial
    Replies: 1
    Last Post: - 4th February 2008, 20:41

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

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