Textbox limitation

Visual Basic

    Sponsored Links

    Next

  • 1. Converting ISO-charset to Unicode
    Hello, I have in my Access 2000 database a lot of translations (German, Polish, Russian etc.). I have separate fields for each language. But all translations are saved in their ISO charset: Field "German": ISO-8859-1 Field "Polish": ISO-8859-2 Field "Russian": ISO-8859-5 I want to read these fields with VB6 ADO and convert the content in Unicode. How is this possible? Thanks in advance!
  • 2. Older post
    Does anyone know where I could find post that are way back? Say, sometimes between 2004 and 2005? Thanks
  • 3. Where has M$ hidden the TabStrip control?
    W2KProp + SP3 VisualStudio6.0 EnterpriseEdition + SP3 (=NOT= .NET) I'd like to use a TabStrip control in my VB6 app. Supposedly this control lives in the "Microsoft Custom Controls 6.0" found in the list under Project->References. But I don't find this reference in my environment. Googling for "Microsoft Custom Controls 6.0" only turns up two hits, both from a learn-VB6-fast book and none from M$ itself. Odd. So where can I find this control? Has it been moved into some other Reference? Or where can I get this Reference? TIA, Still-Learning Steve
  • 4. VB6 cgi hangs with 4KB HTTP query string in server 2003 and II
    Dean Johnson wrote: > The standard input usually comes from the console when the program runs as a > console program. When it is a cgi program, IIS acts as the 'console', and it > provides the standard input and output for the program. Documentation I have > found in the Microsoft TechCenter indicates that the max length is set by the > MaxRequestBytes entry in the registry for HTTP, which I set to 500,000 bytes > (a legal number for that parameter). > However. Obviously there is some problem that is kind of undocumented here, > and since I am close to the 4K limit you mentioned, I wouldn't be surprised > if that were an important part of the problem. If the query line is over 4K, > would it be truncated or would the request be dropped? > Thank you so much for your response. I understand now that this forum isn't > for vb6 questions, and I REALLY appreciate your willingness to answer. Just FYI, this forum very much IS for vb6 questions. I wish I could offer more help, but you are definitely in one of the RIGHT places for your request. Here's a potentially wacky idea though: instead of calling your program, have IIS feed the same big string to ECHO and see if you can get it to tell you what came back. Bob --

Textbox limitation

Postby Thomas Scheiderich » Sat, 29 May 2004 07:49:49 GMT

I have 64299 characters in my text box and I need to add more, but it won't
take anymore.

I am displaying lines of data from my database and need about 300 more
bytes.

Is that the limit VB6 will take?

Is there a way around this?

Thanks,

Tom



Re: Textbox limitation

Postby Veign » Sat, 29 May 2004 07:50:10 GMT

You can use a RichTextbox to get around the character limitation of the
Textbox....

-- 
Chris Hanscom
MVP (Visual Basic)
 http://www.**--****.com/ 




won't



Re: Textbox limitation

Postby Thomas Scheiderich » Sat, 29 May 2004 14:19:59 GMT





Too expensive.







Re: Textbox limitation

Postby erewhon » Sat, 29 May 2004 14:41:51 GMT

On Thu, 27 May 2004 22:19:59 -0700, "Thomas Scheiderich"








You mean you don't want to use the RichText OCX
- understandable

Could you explain what you are /really/ displaying in that Textbox
- I can't believe that you have a 64k length field

Are you abusing the Textbox and making it act as a Listbox ?

Do you want to edit this data - or is it display only ?

It is almost certain that there are 'inexpensive' solutions.

Re: Textbox limitation

Postby Thomas Scheiderich » Sat, 29 May 2004 16:25:41 GMT









I am reading payroll data from our database and displaying each record as I
get it in the textbox. I then total the data on the last line.

I was able to solve the problem temporarily by shortening the name field
from 20 to 15 characters.  This can only be a temporary fix as all it would
take is a new employee or a few more days worked by a few employees (each
day is a new line), and voila - too much data.

My table looks essentially like:

Emp    Name          Shft  PayDate Vantage  Regular  Empl      OT      DT
Shift  Holiday  Total
Num                                 Hours   Hours   Total
11233  JOSEPH ZALES     41 05/03/04   11.5    10.0    10.0     1.5     0.0
0.0     0.0    11.5
11233  JOSEPH ZALES     41 05/04/04   11.5    10.0    20.0     1.5     0.0
0.0     0.0    23.0
11233  JOSEPH ZALES     41 05/05/04   11.5    10.0    30.0     1.5     0.0
0.0     0.0    34.5
11233  JOSEPH ZALES     41 05/06/04   11.5    10.0    40.0     1.5     0.0
0.0     0.0    46.0
11233  JOSEPH ZALES     41 05/07/04    9.7     0.0    40.0     0.0     9.7
0.0     0.0    55.7
11233  JOSEPH ZALES     41 05/08/04   11.5     0.0    40.0     0.0    11.5
0.0     0.0    67.2
11233  IGUEL GONZALES  41 05/09/04   11.5     0.0    40.0     0.0    11.5
0.0     0.0    78.7
       Totals                        78.7    40.0             6.0    32.7
0.0     0.0    78.7


This is possible.  Would a Listbox work better here?  If so, why?

I am not changing any data here, just displaying what I found.

Right now I just do a "textbox = textbox & sline" (where sline has a vbCrLf
at the end).  For a List box, I would need to do this differenty, right?

Is there a limitation on the amount of data it will hold?


Display only.

Thanks,

Tom



Re: Textbox limitation

Postby Bob O`Bob » Sat, 29 May 2004 16:56:25 GMT





Looks like you might benefit from some "report style" coding, such as to 
skip repeating employee number and name by making those into a heading line.

Another option might be to build a "virtualized textbox" usercontrol, 
with a regular textbox, a scrollbar, and a string variable.


	Bob

Re: Textbox limitation

Postby Rick Rothstein » Sat, 29 May 2004 17:39:43 GMT

> Right now I just do a "textbox = textbox & sline" (where sline has a
vbCrLf
right?

This won't solve the problem you came here for (although I don't
understand what your reluctance is over the RichTextBox), but you
shouldn't add text to the TextBox that way... it makes the TextBox erase
and redraw the entire contents of the TextBox. As your TextBox grows in
size, each line you add will take longer and longer to do. Add your new
line like this

     TextBox.SelStart = Len(TextBox.Text)
     TextBox.SelText = "You new line of text" & vbNewLine

You could use vbCrLf instead of vbNewLine... these pre-defined constants
both equate to the same thing on a PC (I prefer the more
self-documenting vbNewLine myself). This SelText method should also be
used to add new text to a RichTextBox if you ever decide to use one.

Rick - MVP


Re: Textbox limitation

Postby Thomas Scheiderich » Sat, 29 May 2004 17:45:02 GMT







would
(each
DT
0.0
0.0
0.0
0.0
9.7
11.5
11.5
32.7
vbCrLf
line.

I thought of that, also.  But then I realized, that wouldn't work here,
because even if you take the employee number and names out, they would be
replaced with spaces to make all the other columns line up.


How does that work?

Would it be better than a Listbox in my case?

Thanks,

Tom



Re: Textbox limitation

Postby Bob O`Bob » Sat, 29 May 2004 17:51:20 GMT




Why?

Are you somehow *forced* to retain the same columnar layout no matter what?


Well, your usercontrol would have to support the properties you currently
use from the textbox, which mostly appears to just be the .Text
In the usercontrol code, it would insure that the string variable always
holds everything, but between that and the scrollbar the textbox only
ever holds a substring.  The scrollbar's events would reload the textbox
to a different substring based on scrollbar value.


Since I wouldn't even consider the Listbox "solution" myself, 
I really couldn't say.

What I'd really recommend is to review what's really being done with
this textbox and consider substantially different possibilities based
on real needs.  How do users *use* this gigantic lump of data in that
poor overloaded textbox?


	Bob

Re: Textbox limitation

Postby S2plbGw » Sat, 29 May 2004 18:06:04 GMT

I would go for a listbox or even a ListView in report style giving you much better display features

I mean, a lot of data for display requires a display area....... a textbox is for a line of information or maybe a message

byt hey, that's me  :-

Kjell

Re: Textbox limitation

Postby MikeD » Sat, 29 May 2004 18:58:38 GMT










What do you mean "too expensive"?  The RichTextBox is included with VB, so
it's free.  If you're not referring to cost, then what are you referring to?

Mike



Re: Textbox limitation

Postby erewhon » Sat, 29 May 2004 20:48:26 GMT

On Fri, 28 May 2004 05:58:38 -0400, "MikeD" < XXXX@XXXXX.COM >











He means no F**king OCXes
- either he is smart or his boss is smart

Re: Textbox limitation

Postby erewhon » Sat, 29 May 2004 21:07:28 GMT

On Fri, 28 May 2004 00:25:41 -0700, "Thomas Scheiderich"



<snip>


Perverse use of a Textbox !


Gottit - you are listing records.

Because that is what it is meant for.
- but you need a real bullet proof solution
(RAM bound solutions are for undergraduates 
  - or people who teach IT 
    - like that Adam guy who popped up a few days ago)


So you need a 'virtual listbox'


Yup.


2gb lines ?  well probably far less.
200,000 lines - no problem


Ok - now we know what you are trying to do the solution is obvious.

Post again and I shall send you a rather naff but fully functional
virtual Listbox (don't worry a UserControl not an OCX) so it will not
cost you on footprint or installation hassles.

Alternatively, I've posted the same before, but as Frank A. pointed
out, there is a lot to sift through.



Re: Textbox limitation

Postby AustinMN » Sat, 29 May 2004 23:21:10 GMT



I would display this in a grid.

Austin


Re: Textbox limitation

Postby Thomas Scheiderich » Sun, 30 May 2004 16:06:03 GMT





My mistake.  I looked at the Web for information on the Richtext box and
found a commercial control for 200  - 400, which was not what everyone was
talking about, apparently.  I did load the MS RichText and it might do
exactly what I want.

I did replace textbox and found a problem right off the bat.  I got an
error:

Method or Data member not found

for this line:

TextHelp.FontName = "Courier New"

I know that the font section in the properties window looks the same as the
textbox.  How do I change the font name?

Also, is there a limit to amount of data that can go in the box?

Is there a reason to not use this control?  One seems to be that MS didn't
even use it's own textbox methods (or methods names, which would have been
nice).


Is this the same with the richtext control?

Actually, I do use vbCrLf for my end of lines.

I use the following to add a line:

**********************************************************
        stemp = Format(EmployeeNum, "!@@@@@@") & " " & _
                Format(EmployeeName, "!@@@@@@@@@@@@@@@") & _
                "  " & Format(Shift, "!@@") & " " & _
                Format(PayrollDate, "mm/dd/yy") & "  " & _
                Format(Format(PayHours, "#0.00"), "@@@@@") & _
                "    " & Format(Format(adjPayHours, "#0.00"), "@@@@@") & _
                "  " & Format(Format(RunningTotal, "##0.00"), "@@@@@@") & "
" & _
                Format(Format(otPremium, "###0.00"), "@@@@@@@") & " " & _
                Format(Format(dtPremium, "###0.00"), "@@@@@@@") & " " & _
                Format(Format(ShiftPremium, "###0.00"), "@@@@@@@") & " " & _
                Format(Format(HolidayHoursPremium, "###0.00"), "@@@@@@@") &
"  " & _
                Format(Format(GrandTotalHoursWorked, "####0.00"), "@@@@@@@")
    End If

    TextHelp = TextHelp & stemp & vbCrLf
**********************************************************************


I still don't understand why the SelText Method doesn't give you the same
problem?

Thanks,

Tom.



Similar Threads:

1.TextBox limitation

I have a textbox, open a text file which is more than 32K and put the file
content in the textbox. I know from the help that text box has the
limitation of 32K. As a result, the textbox can show up to 65535 characters.
I think this is the 32K limitation, rite? However, i found that i can input
additional characters in the textbox manually after the 65535 characters and
the textbox.text property return the whole text without truncate. Is it the
textbox limitation that only 65535 characters can be assigned by the
program? or there is any work around?

Or should i use the rich text box to replace the textbox?

Thanks in advance!

Martin


2.overcoming textbox limitations

the TextBox object is limited to ~32K, I suppose it would easy enough to
buffer a larger file in memory and load it into the TextBox as needed. Is
there a better object use for larger files? I saw a TextSTream object in
MSDN but how do I find it in VB?


3.Grid Control Tutorial was Textbox limitation

Yea...from what I'm seeing, that would probably be the best option. On that
note...does anyone know of a good tutorial for them?

-Wes

"AustinMN" < XXXX@XXXXX.COM > wrote in message
news:qVHtc.3609$ XXXX@XXXXX.COM ...
> Thomas Scheiderich wrote:
> >
> > My table looks essentially like:
> >
> > Emp    Name          Shft  PayDate Vantage  Regular  Empl      OT
DT
> > Shift  Holiday  Total
> > Num                                 Hours   Hours   Total
> > 11233  JOSEPH ZALES     41 05/03/04   11.5    10.0    10.0     1.5
0.0
> > 0.0     0.0    11.5
> > 11233  JOSEPH ZALES     41 05/04/04   11.5    10.0    20.0     1.5
0.0
> > 0.0     0.0    23.0
> > 11233  JOSEPH ZALES     41 05/05/04   11.5    10.0    30.0     1.5
0.0
> > 0.0     0.0    34.5
> > 11233  JOSEPH ZALES     41 05/06/04   11.5    10.0    40.0     1.5
0.0
> > 0.0     0.0    46.0
> > 11233  JOSEPH ZALES     41 05/07/04    9.7     0.0    40.0     0.0
9.7
> > 0.0     0.0    55.7
> > 11233  JOSEPH ZALES     41 05/08/04   11.5     0.0    40.0     0.0
11.5
> > 0.0     0.0    67.2
> > 11233  IGUEL GONZALES  41 05/09/04   11.5     0.0    40.0     0.0
11.5
> > 0.0     0.0    78.7
> >        Totals                        78.7    40.0             6.0
32.7
> > 0.0     0.0    78.7
> >
>
> I would display this in a grid.
>
> Austin
>


4.Limitation to drawing on a form

There seems to be a limitation to drawing on a form that is set to 300x300.  
The problem is I can't seem to figure out how to expand that so eve if I make 
the form bigger the drawing only shows up on that 300x300 space.  Is there 
any way to expand that?

5.Limitation

There are some limitation list in vb3-vb6 documatations
such as how many controls can be placed in a form. and global varibles in
project...

what about VB.NET.
I have a project and total files size in the project is over 40M.
One of the form's size is around 3 M.

I find I cannot load the project, It said a unspecified error occur when
loading the form.

Thanks


6. Setting Limitation to number of Rows in DataGrid?

7. Limitations of VB .Net

8. Datagrid limitation??



Return to Visual Basic

 

Who is online

Users browsing this forum: No registered users and 84 guest