Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Are text objects limited?

Status
Not open for further replies.

Statey603

Programmer
Nov 10, 2009
196
US
I have some Text objects on a DataWindow. I can't seem to type more than 255 characters into the object in desgin layout. Is this a limitation of a text object?

If so, is there another object that holds more characters?

If not, what might I be doing wrong?
 
Are they columns? You said you're trying to type in a fair amount of text is the reason I ask.

If so, is the limit set? Is autoscroll on? H/V scrollbars?
 
I don't think so. It depends onwhat you mean by columns. They are Text objects (added to the DataWindow layout via Insert Control).

This DataWindow is a Letter. I am trying to add paragrpahs of static text.

thanks

 
What is the column defined as on the DW? (ie, char(255))?

Matt

"Nature forges everything on the anvil of time
 
What was the version of PB you are using?
If you do 'View', 'Layout' and then choose default, there should be a tab visible somewhere (right lower corner of the screen) with all the column specifications and objects on the datawindow.


regards,
Miguel L.
 
These text objects are NOT associated with any data (columns) for the DataWindow. They are static text.

It is a LETTER. I added some text objects via Insert, Text object and am specifying the text to be displayed via the Text property on the General Tab (in the DataWindow Layout Design). I can type as much as I want in the Text property, but it appears that there is a cut-off because it does not all display. I think it is a limitation, but cannot find any documentation about this. If this is a limit of a text object on a DataWindow, then is there another text-type object that is not limited?

 
Yes you are right: there's a undocumented 256 length limit on static texts. (labels)

So what you can do is:
- use more than one Text.
- or... use a "computed field". In it's expression you simply type the string you want to show.





regards,
Miguel L.
 
I am trying to get away from a text object for every line of text in the letter.

I tried typing the text into a computed field but received 'Expression is not valid'. I tried quoting the text but got the same error. I am notfamiliar with the string(x,n) function and cannot figure out what x needs to be.



 
Figured out how to get text-only into the computed field.....

I needed single quotes.

thnx

 
of course,
there's diferent ways to delimit strings

a) " ' ' ....' "
b) ' ... text " ... " ....'
c) " .... ~" ...... "
' ..... .... ~' ...... " '
( I'm not sure if ~' has to be ~~', like for in example datawindow syntax passed to Modify() sometimes has to be double ~

If you don't use ' or " then you don't have to put quotes around the expression.


regards,
Miguel L.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top