Variables in Lookup


Closed Thread
Results 1 to 3 of 3
  1. #1
    BlackDiamond's Avatar
    BlackDiamond Guest

    Default Variables in Lookup

    Is there a way to have lookup refer to a variable? I have a routine that requires several values for "hello" but I can't figure out how to replace the string with a variable. Or should I be using a different approach?
    For B0 = 0 To 5
    LOOKUP B0,[“Hello!”],B1
    Next B0

  2. #2
    Join Date
    Nov 2009
    Location
    London
    Posts
    251


    Did you find this post helpful? Yes | No

    Default Re: Variables in Lookup

    I can't understand your question correctly. Could you explain a bit more with an examPle may be

  3. #3
    BlackDiamond's Avatar
    BlackDiamond Guest


    Did you find this post helpful? Yes | No

    Default Re: Variables in Lookup

    Here's the kind of thing that I need to do:


    M1 = "Message_1"
    M2 = "Message_2"
    M3 = "Message_3"

    If x = 1 then Mess = M1
    If x = 2 then Mess = M2
    If x = 3 then Mess = M3

    For B0 = 0 To 8
    LOOKUP B0,[“Mess”],B1
    Serout 0,N2400,[B1]
    Next B0

Members who have read this thread : 1

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