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


Results 1 to 27 of 27

Threaded View

  1. #18
    MrSafe's Avatar
    MrSafe Guest


    Did you find this post helpful? Yes | No

    Default

    The code below will compile all I did different from the code on the bottom is change the htxt[x] to x
    alpha1:
    gosub getkey
    LOOKUP key,[" ABCDEFGHIJ"],x
    htxt[x] = htxt[x] + 1
    RETURN

    alpha2:
    gosub getkey
    LOOKUP key,[" KLMNOPQRST"],htxt[X]
    htxt[x] = htxt[x] + 1
    RETURN
    The code above will not compile the compiler gives me the fallowing error

    "output parameter must be a variable"
    Attached Files Attached Files

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