Editor related Questions

SKaushal

New Member
I have a character field as Note x(250) and i'm using editor to enter data into it.I'm facing following problems

1) Can I restrict just 250 characters to it because it accepts more than what i hv specified.
2) How to get this fiel printed in just 2 lines.
3) If we press enter in Editor it moves to next line And when i tried to print it it leaves blank lines .
Can anybody help me out?

Thanks.

Sanjeev
 

jongpau

Member
Hi Sanjeev,

1. In the property sheet of the editor widget set the "Maximum Characters" to 250. If you have a dynamic editor widget you can set it by setting the "MAX-CHARS" attribute, but you have to do this before the widget is painted on the screen.

2. You will have to write some "clever" code that splits your text into 2 lines (probably with word wrap).

3. I think you may have to filter the CrLf stuff that get's put in the text when you press enter and replace it with a single skip ("~n"). Not too sure about this, but a bit of experimenting will get you there (that's the fun of programming isn't it :)).
 
Top