Simple Array Demo


Results 1 to 6 of 6

Threaded View

  1. #5
    Join Date
    Jul 2003
    Posts
    2,405


    Did you find this post helpful? Yes | No

    Default

    Joe,

    Did you know you can do this?

    Code:
    Dat VAR BYTE
    Alphabet VAR BYTE[26]
    
    Main:
        FOR Dat = "A" to "Z"
         Alphabet[Dat-65]=Dat ' load Alphabet array 0-25 with A-Z
         HSEROUT [Alphabet[Dat-65],13,10]
         PAUSE 50
        NEXT Dat
        PAUSE 5000
        GOTO Main
        
        END
    Last edited by Bruce; - 14th February 2010 at 19:56. Reason: Better example
    Regards,

    -Bruce
    tech at rentron.com
    http://www.rentron.com

Similar Threads

  1. Bits, Bytes Words and Arrays
    By Melanie in forum FAQ - Frequently Asked Questions
    Replies: 24
    Last Post: - 14th June 2016, 08:55
  2. 16f887 44 pin demo board code problem?
    By jessey in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 7th December 2008, 15:17
  3. Schematic for simple demo
    By iandonahue in forum USB
    Replies: 7
    Last Post: - 4th March 2008, 16:18
  4. RS232 receive an array (packet)
    By ELCouz in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 12th February 2008, 06:02
  5. Array to simple Variable converting
    By mrx23 in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 2nd September 2006, 17:44

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