How to use Arrays Using Pic Basic Pro(need help)


Results 1 to 27 of 27

Threaded View

  1. #19
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by MrSafe View Post
    The code above will not compile the compiler gives me the fallowing error
    "output parameter must be a variable"
    The answer is in the manual under the specifications for the LOOKUP...
    Array variables with a variable index (ex. htxt[x] ) may not be used in LOOKUP although array variables with a constant index (ex. htxt[1] ) are allowed

    So, don't use what doesn't work, and use what does work and change it around a bit...
    Code:
    alpha2:
    gosub getkey
    LOOKUP key,[" KLMNOPQRST"],tempx
    htxt[x] = tempx
    htxt[x] = htxt[x] + 1
    RETURN
    Last edited by skimask; - 3rd July 2007 at 05:13.

Similar Threads

  1. Sending Commands from Visual Basic about IR to Pic
    By tne_de in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 29th April 2009, 06:09
  2. Loop with two motor and 2 sensors
    By MrRoboto in forum mel PIC BASIC
    Replies: 4
    Last Post: - 8th December 2008, 23:40
  3. using AND as an IF statement
    By dw_pic in forum mel PIC BASIC
    Replies: 27
    Last Post: - 8th June 2006, 18:05
  4. vb6 to pic basic
    By Darrenmac in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 19th December 2005, 01:56
  5. The Ultimate PIC Basic
    By picnaut in forum PBP Wish List
    Replies: 4
    Last Post: - 9th November 2004, 22:10

Members who have read this thread : 2

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