Results 1 to 11 of 11

Thread: What is the highest number a text box can have?

  1. #1
    ¿?NotoriouS?¿
    Guest

    Question What is the highest number a text box can have?

    What is it?!?!?!
    At 317 you get error 28 but that not the number.

  2. #2
    DaoK
    Guest
    textbox can hold any number...

  3. #3
    Addicted Member Rikk's Avatar
    Join Date
    Nov 2001
    Location
    Atlanta
    Posts
    131
    Please show us the code you are using...

    Thanks...
    Rikk =\=
    Starcraft, Protoss Scout Driver!

  4. #4
    Need-a-life Member Mc Brain's Avatar
    Join Date
    Apr 2000
    Location
    Buenos Aires, Argentina
    Posts
    6,808
    Err #28, means you run out of stack space. That means that you're doing a recursive code that keeps calling itself (or something like that) that fills the stack space. Check your code, or post it here so that we can see it.
    Emiliano F. Martín


    If a post has helped you then please Rate it! (and give the user points he/she deserves by clicking on the image).
    Encourage the person who helped you to keep doing it, and give him the points he deserves.


    MP3 Organizer: Freeware to logically organize all your MP3s.

  5. #5
    Frenzied Member nishantp's Avatar
    Join Date
    Jan 2001
    Location
    Where you least expect me to be
    Posts
    1,375
    Text boxes don't think in terms of numbers. They think in terms of each character, so the actualy value of the number doesnt matter.
    You just proved that sig advertisements work.

  6. #6
    Conquistador
    Join Date
    Dec 1999
    Location
    Australia
    Posts
    4,527
    they can hold 32K yeah?

  7. #7
    DaoK
    Guest
    (64565/2) characters I think

  8. #8
    Need-a-life Member Mc Brain's Avatar
    Join Date
    Apr 2000
    Location
    Buenos Aires, Argentina
    Posts
    6,808
    Originally posted by da_silvy
    they can hold 32K yeah?
    I really have no idea. But the problem he's having is because of the stack.

    The are only two ways you could get rid of this problem, ¿?NotoriouS?¿ Analysing the code yoursef, and debug it.... or posting the code for us to read it. We won't be able to guess what's the problem with your code. My guess was the further I can get with the data you supplied.
    Emiliano F. Martín


    If a post has helped you then please Rate it! (and give the user points he/she deserves by clicking on the image).
    Encourage the person who helped you to keep doing it, and give him the points he deserves.


    MP3 Organizer: Freeware to logically organize all your MP3s.

  9. #9
    Addicted Member Rikk's Avatar
    Join Date
    Nov 2001
    Location
    Atlanta
    Posts
    131
    Maybe 129130/4 ??

    Rikk =\=
    Starcraft, Protoss Scout Driver!

  10. #10
    ¿?NotoriouS?¿
    Guest
    this is the code:

    Private Sub Text1_Change()
    Text1.Text = Text1.Text+1
    End Sub
    Form Load()
    Text1.Text = Text1.Text+1
    End Sub

    So basically every time it changes it changes it again I guess that's why I got the error.

  11. #11
    Need-a-life Member Mc Brain's Avatar
    Join Date
    Apr 2000
    Location
    Buenos Aires, Argentina
    Posts
    6,808
    That's why.... You see?

    Every time you change the Text1, the Text1_Change event is fired. So the code is executed... and changes the Text1. This means the Text1_Change event is fired again (before the previous had finished)... and so on, so on.... That's why you run out of stack space.
    Last edited by Mc Brain; Jan 16th, 2002 at 09:59 PM.
    Emiliano F. Martín


    If a post has helped you then please Rate it! (and give the user points he/she deserves by clicking on the image).
    Encourage the person who helped you to keep doing it, and give him the points he deserves.


    MP3 Organizer: Freeware to logically organize all your MP3s.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width