VB6 copy long string to text box - string

Hi Apologize if this question doesn't form well with stack overflow.
However, I am trying to assign a VERY long string to a text box programmatically but only part of my string is coming in. The rest is cut off.
Text1.Text = UPCSTRING
UPCSTRING is about 319,000 chars and has line breaks after each 70 chars.
Why doesn't the whole string show up in the textbox?
IS there a better way to do this?
PS if I debug.print UPCSTRING my whole string shows up.

Per the MSDN Article on the VB6 Textbox, there are limitations to the amount of text it will hold:
By default, you can enter up to 2048 characters in a text box. If you
set the MultiLine property of the control to True, you can enter up to
32K of text.
As others have commented, anything that large is just nonsense to the user.
If you insist on this interface, perhaps switching to the Rich Text Box will help as it doesn't have the text limitation that the standard Text Box does.

A normal text box cannot accommodate maximum 255 char length.
Set Text1.Multiline = true above 255 character length. Even Multiline text box restricted to 32,000. In that case go for Rich text box.

Related

What is the value of a Word Legacy Text Form Field if nothing is entered?

I have a Word-based form that a user populates, and it includes legacy text form fields. When they are not filled in, these forms return what turns out in Excel (as in, in a worksheet) to be five spaces. If the user didn't enter anything, I want it to be blank. However, for the life of me, I can't figure out what these "five spaces" actually are in terms of characters. They are very clearly not five spaces, and I'm not aware of a five-space tab that can be called using Chr(). How can I find out what Word is actually returning from these unfilled form fields?
Each of the five characters is Asc(32).

set the word 'remove' in text box in gui in matlab

I programmed a GUI in Matlab (using guide). I have a text box in which I try to set strings. whenever I tried to put the string 'remove' using.
set(handles.sentence,'string','remove');
I get blank. if I put:
set(handles.sentence,'string','REMOVE');
it presents 'REMOVE' in the text box.
thank you.
This is documented:
The words default, factory, and remove are reserved words that will not appear in text when quoted as a normal characters. To display any of these words individually, precede them with a backslash, such as '\default' or '\remove'.

Character debug in Excel

I'm using Excel's Get & Transform to get data from a text file. The problem is that the textfile has special characters and those are not correctly displayed. So I have a sheet with this data, and I have also imported one with the character debug list, which shows e.g. that À should be À.
The only option I see is "replace values" which requires me to go in manually and change each of the 128 characters. Is there any way to replace all the special characters using the character debug list?
Or any other way to do it?
Thanks :)

Only making part of text bold in Powerbuilder expression

Is it possible to make only a specific part of a string bold in a computed field or text object.
Try a RichText control. It will give you more control over the look of the text.

How to vertically align the text in static text box in PowerBuilder?

How to vertically align the text in static text box in PowerBuilder like the following picture? It can be aligned horizontally to left, center, right. But cannot do the same thing vertically.
Thanks
As far as I know, it cannot be done out of the box.
I have made it anyway "by hand" with the help of the windows API: DrawText(), OffsetRect() and so on to create an improved rounded command button.
You can look at the code in that gist (look at the of_drawtext() method).
Can you explain the purpose of this text box?
Maybe you could use another object where you can easily move your text within.
The text in the box may have a variable number of line?
Do you use sql on the window object?
Maybe put this text between line feed in compute field within the datawindow you used can help you.(Handy Manny's style.....i agree....).
Erf....Seki answered faster
You can use a DW to vertically align a text.
An attribute of the dw static text called "font.escapement" sets the angle at which you want your text displayed.
To display text vertically, set the escapement attribute to 900 (10 * the angle) or to 2700.
Please notice that you will not see the effect in the datawindow painter, you'll have to preview your dw to see if the text is in the correct angle.

Resources