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


Results 1 to 27 of 27

Threaded View

  1. #21
    MrSafe's Avatar
    MrSafe Guest


    Did you find this post helpful? Yes | No

    Default

    I Got the code to work with each part. By that I specifically mean



    alpha1:
    gosub getkey
    LOOKUP key,[" ABCDEFGHIJ"],Char
    if (key = 1) Then char = "A"
    if (key = 2) Then char = "B"
    if (key = 3) Then char = "C"
    if (key = 4) Then char = "D"
    if (key = 5) Then char = "E"
    if (key = 6) Then char = "F"
    if (key = 7) Then char = "G"
    if (key = 8) Then char = "H"
    if (key = 9) Then char = "I"
    if (key = 0) Then char = "J"
    RETURN
    They work by them selfs however when I combine all of them like in the code provided they do not work I have tried everything I could think of any suggestions?


    **UPDATE**

    What I want my program to do after he or she has chosen to type their message in is I want it to store every character and number that they type in and display it on the lcd. What I thought would be the best method to do this is to use an array to store the message keystroke by keystroke and display it as he or she is typing the message after which to send the stored data out one byte at a time to the destination I am transferring the data wireless over the air.
    Last edited by MrSafe; - 3rd July 2007 at 06:10.

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