convert the numbers to word


Closed Thread
Results 1 to 14 of 14

Hybrid View

  1. #1
    Join Date
    Oct 2004
    Location
    Hangover, Germany
    Posts
    289


    Did you find this post helpful? Yes | No

    Smile

    Maybe this is more effectiv:

    Code:
    getword:
        value = 0 
        for x = 0 to 3
            Gosub getkey                  ' Get a key from the keypad  
            lcdout I,Line2 + x,#key     ' Display ASCII key number
            value=Value*10+key
        next
        return
    PBP 2.50C, MCS+ 3.0.0.5, MPLAB 8, MPASM 5.14, ASIX Presto, PoScope, mE mikroBasic V7.2, PICKIT2

  2. #2
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Thumbs up

    Quote Originally Posted by BigWumpus View Post
    Maybe this is more effectiv:

    Code:
    getword:
        value = 0 
        for x = 0 to 3
            Gosub getkey                  ' Get a key from the keypad  
            lcdout I,Line2 + x,#key     ' Display ASCII key number
            value=Value*10+key
        next
        return
    OH...that is pretty slick...

  3. #3
    Join Date
    Jun 2006
    Location
    Greece
    Posts
    302


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by BigWumpus View Post
    Maybe this is more effectiv:

    Code:
    getword:
        value = 0 
        for x = 0 to 3
            Gosub getkey                  ' Get a key from the keypad  
            lcdout I,Line2 + x,#key     ' Display ASCII key number
            value=Value*10+key
        next
        return
    Yes , is more effectiv
    Thank you

Similar Threads

  1. Read/Write Problem
    By Tobias in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 10th February 2010, 02:51
  2. Minimizing code space
    By Tobias in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 30th May 2009, 08:25
  3. SEROUT WORD variable problem
    By Tobias in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 19th April 2009, 12:20
  4. DS2760 Thermocouple Kit from Parallax in PicBasicPro
    By seanharmon in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 9th July 2008, 00:19
  5. calculation problem
    By nicolelawsc in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 31st March 2006, 16:23

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