int to string conversion


Closed Thread
Results 1 to 4 of 4
  1. #1
    Join Date
    Nov 2005
    Posts
    19

    Default int to string conversion

    How to convert from int to string. I wanna to display number in LCD because LCD accept on string. TQ

  2. #2
    Join Date
    Dec 2003
    Location
    Wichita KS
    Posts
    511


    Did you find this post helpful? Yes | No

    Default

    One way is th "Dig" command, you can isolate each digit of your number, and output it to your LCD.

    Dwayne
    Ability to Fly:
    Hurling yourself towards the ground, and missing.

    Engineers that Contribute to flying:
    Both optimists and pessimists contribute to the society. The optimist invents the aeroplane, the pessimist the parachute

    Pilots that are Flying:
    Those who know their limitations, and respect the green side of the grass...

  3. #3
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,521


    Did you find this post helpful? Yes | No

    Default

    Hi,
    If I underastand your question correct what you need is the # operator.

    LCDOUT $FE, 1, #YourVariable

    If YourVariable holds the value 106 this command will print 106 on the LCD instead of the ASCII representation of 106 which is "j". This will also work with Serout, Serout2, Hserout & Debug.

    /Henrik Olsson.

  4. #4
    Join Date
    Nov 2005
    Posts
    19


    Did you find this post helpful? Yes | No

    Default

    Thanks HenrikOlsson, your reply is very helpful.

Similar Threads

  1. How about String Variables?
    By mytekcontrols in forum PBP Wish List
    Replies: 40
    Last Post: - 20th January 2015, 12:53
  2. String Conversion
    By bethr in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 19th August 2009, 19:57
  3. help: TMR0 interrupts disabling PORTAchange interrupts???
    By xnihilo in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 19th August 2008, 15:10
  4. Embedded Strings in your Code Space
    By mytekcontrols in forum mel PIC BASIC Pro
    Replies: 49
    Last Post: - 9th March 2008, 07:50
  5. Visual Basic 6 & Access 2000
    By Demon in forum Off Topic
    Replies: 33
    Last Post: - 7th September 2006, 04:39

Members who have read this thread : 1

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