Announcement

Collapse
No announcement yet.

What is up with TextBox

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • What is up with TextBox

    Is there any thing I should know when pass text out of a textbox
    in my code..
    Inv. Mark Nelson

  • #2
    Lot's!

    Regards, Jules

    Comment


    • #3
      Like what...

      ------------------
      Inv. Mark Nelson

      Comment


      • #4
        mark,

        i assume you mean pasting from forum to your text editor.
        search "pasting" on this bbs. below link may help:

        <font face="courier new, courier" size="3"><pre>
        http://www.powerbasic.com/support/pb...ad.php?t=17500
        [/CODE]

        cecil

        ------------------

        Comment


        • #5
          No, ok I wrote a app that uses a textbox , But when I take that
          info from the textbox it does work. Yes I use a trim on it..
          But when I have it in there using DDT it works...

          CONTROL ADD TEXTBOX,qdlg,100,"hello",14,16,100,12,0
          it works this way but not this way
          CONTROL ADD TEXTBOX,qdlg,100,"",14,16,100,12,0



          ------------------
          Inv. Mark Nelson

          Comment


          • #6
            Hey Mark,
            Send me a snippet of it, I'll take a gander at it 2nite...
            I usually do mine with "" in it for the string, hasn't been a problem yet... In fact look at the snake event log text box...


            Scott

            ------------------
            Scott
            mailto:[email protected][email protected]</A>
            Scott Turchin
            MCSE, MCP+I
            http://www.tngbbs.com
            ----------------------
            True Karate-do is this: that in daily life, one's mind and body be trained and developed in a spirit of humility; and that in critical times, one be devoted utterly to the cause of justice. -Gichin Funakoshi

            Comment


            • #7
              No, ok I wrote a app that uses a textbox , But when I take that info from the textbox it does work. Yes I use a trim on it.. But when I have it in there using DDT it works...
              What is the actual problem? Your message doesn't actually say what happens/fails/crashes/etc - "it works this way but not this way" could be a little more explicit.

              I assume that you are using CONTROL GET TEXT and CONTROL SET TEXT to retrieve and set the text in the edit control?

              Mark, can you please clearly explain *exactly* what the problem is that you are experiencing?

              I'm afraid I have no idea what the problem is from your description. Also, if you can post a compilable example, then we should be able to offer more definitive help. Thanks!


              ------------------
              Lance
              PowerBASIC Support
              mailto:[email protected][email protected]</A>
              Lance
              mailto:[email protected]

              Comment


              • #8
                The problem that I've seen is that RTRIM$ and TRIM$ do not appear to work on strings over about 180 characters in length. I've had to write a small rountine to do that myself.

                ------------------

                Comment


                • #9
                  That is an absolutely UNTRUE and misleading statement, William. Your experience is certainly NOT due to a PowerBASIC problem - I would guarantee that it was due to a bug or coding problem in your code.

                  The limit of RTRIM$(), TRIM$(), and the other built-in string functions is 2 GIGABYTES - the maximum amount of memory an application can access. I have personally used these functions on strings in the tens-of-megabytes range with absolutely zero problems.


                  ------------------
                  Lance
                  PowerBASIC Support
                  mailto:[email protected][email protected]</A>
                  Lance
                  mailto:[email protected]

                  Comment


                  • #10
                    Thank you everyone I got it I am such a @#$%&*
                    in my code I had +1 HAHAHA

                    Thank YOU

                    ------------------
                    Inv. Mark Nelson

                    Comment

                    Working...
                    X