How about String Variables?


Closed Thread
Results 1 to 40 of 41

Hybrid View

  1. #1
    Join Date
    Jul 2008
    Posts
    38


    Did you find this post helpful? Yes | No

    Default

    I'm in 100% agreement...perhaps the "One" thing i hate about picbasic is the severe lack of string-handling.
    I would LOVE something as simple as a string buffer/variable to contain a value such as "Hello" etc.

    In the meantime, who out there has other solutions for storing/handling strings???

    I'm sure there's a few ways to store the string (as bytes) in the internal Ram and retrieve them as concatenated strings...

    May your WISH come true
    Marty.

  2. #2
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    I am curious about the application using a MCU where that type of string handleing would be needed?

    The serial and LCD commands can work with strings via arrays now.
    I see most people using a MCU for monitoring/control of something. Just wondering what you have in mind?
    Dave
    Always wear safety glasses while programming.

  3. #3
    Join Date
    Jul 2008
    Posts
    38


    Did you find this post helpful? Yes | No

    Default

    Who would waste time with code-consuming arrays when you could use something like "Buffer = "Hello World!" as shown above.

    In recent coding i've played with, i've had the need for using 2character strings, it would seem inefficient to use several for-next arrays for only 2 characters.

    Why can't a buffer be assigned to xx-amount of ram locations and be given a name or symbol that can be called upon by name?

    Don't get me wrong, Picbasic Pro is EXCELLENT, but has a LONG way to go
    I can't believe many of the simple tasks i used to do with GWbasic 25+ years ago, still isn't supported in Picbasic....

    Marty.

  4. #4
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by gtvmarty View Post
    Don't get me wrong, Picbasic Pro is EXCELLENT, but has a LONG way to go
    I can't believe many of the simple tasks i used to do with GWbasic 25+ years ago, still isn't supported in Picbasic....

    Marty.
    Wow! I did not know that GWbasic worked with the architecture of a MCU.
    Dave
    Always wear safety glasses while programming.

  5. #5
    Join Date
    Jul 2008
    Posts
    38


    Did you find this post helpful? Yes | No

    Default

    U must have had the older version

    Quote Originally Posted by mackrackit View Post
    Wow! I did not know that GWbasic worked with the architecture of a MCU.

  6. #6
    Join Date
    Dec 2008
    Location
    Los Angeles, CA
    Posts
    156


    Did you find this post helpful? Yes | No

    Unhappy

    Strings are needed ALL THE TIME! I wish PBP would face the music and implement them! Every other compiler I see has them, why not PBP? (And No, I don't want to switch because I've got years and $ invested in this one.)

  7. #7
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by circuitpro View Post
    Strings are needed ALL THE TIME! I wish PBP would face the music and implement them! Every other compiler I see has them, why not PBP? (And No, I don't want to switch because I've got years and $ invested in this one.)
    Like I asked before, what type of project would you do that needs this?
    I am not trying to be difficult, I just have not had the need beyond what is already there.

    It might be fun/interesting to write a library/include to handle some of this stuff. If an example of it's usage was given I might give it a go...
    Dave
    Always wear safety glasses while programming.

Similar Threads

  1. How to convert HEX Value as formatted BIN String ?
    By Robson in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 19th August 2007, 02:16
  2. Visual Basic 6 & Access 2000
    By Demon in forum Off Topic
    Replies: 33
    Last Post: - 7th September 2006, 04:39
  3. Variables not appearing in Watch Window MPLabv7.3
    By jd76duke in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 16th June 2006, 14:36
  4. String Parsing
    By eoasap in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 18th February 2006, 17:20
  5. Message String Table using Readcode
    By mytekcontrols in forum Code Examples
    Replies: 2
    Last Post: - 10th July 2005, 23:17

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