
So, I have some multi-line data (contains returns) stored in a sqlite table - like...
"Line 1
Line 2
Line 3 "
I must be doing something wrong. I have tried a scrolling list field as well as a data grid and both put each line in a separate row.
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
The field is stored in the database just as I show in original post - a string (text) with return characters in it, making it a multi-line.quailcreek wrote:So how is the data stored in the database and what do you want it to look like in your field?
Thanks Tom,quailcreek wrote:If you store a field that has CRs into the database it will show in the table on one line eventhough the CRs are still there. When you pull that data into the dataGrid the CRs come along too.
quailcreek wrote:The screen shots show the issue. However, we will need to see your code in order to diagnose the problem and provide a solution.
Try replacing the cr with numToChar(11), it's a soft return that keeps the line together. 11 is the ascii char
Look up numToChar() in the dictionary.
I replaced the "return" with the numToChar(11) like you suggested. You are right, it displays it as one line in the grid. Problem is, it displays that way in all controls.quailcreek wrote:If you want the 3 lines to be in 1 row the CRs need to be replaced with numToChar(11).