I’m hoping this is a really simple problem to resolve.
I’m recently getting back into Clarion and I want to use a MEMO field within a standard TPS file. (I’m still at the stage of only producing very small apps)
I can use the data type MEMO in the Data Dictionary and give it a length of 4096 bytes, however the screen picture gets set to @s255. When I place the field on the form, it gives me just that, a string of 255 bytes. I’m pretty sure back in the day you could define how many rows you wanted to display of the MEMO field and whether you wanted scroll bars on the field if required.
I’m hoping I’ve just missed something really obvious.
As Rick said use TEXT. Add VSCROLL to allow entering more lines than the control size on the window will display. Add HSCROLL for no word wrap to occur, typically used when showing a text file.
Tip: If you want an ENRY that accepts more than 255 use a TEXT with the SINGLE attribute that prevents pressing Enter for newline.
The Prop:Line does have the limitation the TEXT always wraps at 1024 bytes. It’s the way the Windows Edit control works. Not usually an issue but Armor ran into it and reported in Comp.lang.clarion. I use that often to get text split into lines at 13,10