andrew_br
17th September 2004, 20:13
i'm working with text field.
when i have only 1 row without EOL "end of line" character in a text field, the functions does not return anything.
string text.buffer.o(200, 20)
row.o = text.to.buf("xxxxxx.txta.o", language$, 20, text.buffer.o)
lbencic
17th September 2004, 20:22
Is that the actual call (xxxxxx.txta.o)? There a couple tricky things to text.to.buf, one thing I noticed is that the text field has to be an actual table field, not just a program variable of type text.
So when it's not the text to a table field, what I have done in the past is pick an unused table text field and temporarily assign my program text variable to it, then call the text.to.buf, then replace the table field's real value.
Nothing to do with end of line - are you saying yours works if there is more than one line or if you have the EOL char in there? If so, my solution is not your answer.
Also, you may try declaring your text to buff variable as external.
Good luck.
andrew_br
17th September 2004, 20:49
sorry!
xxxxxxx.txta.o is just a sample. In fact it is a table text field and the buff variable is external as well.
thanks
lbencic
17th September 2004, 23:04
ok, that looks like the way I have had it working. More questions then - you specify the no EOL / 1 line - is it working for more than one line or for 1 line with an EOL on it?
When you say no EOL on it - how are you telling this. What is the editor used to put the text there?
andrew_br
20th September 2004, 15:50
It is working fine for 1 or more line with an EOL on it.
I'm using notepad program.
When you edit 1 line on text field and save without you press "ENTER" then the text is saved without EOL.