Re: Carriage Return in datagrid data

2012-01-05 Thread Pete
Network -Original Message- From: Pete p...@mollysrevenge.com Sender: use-livecode-boun...@lists.runrev.com Date: Wed, 4 Jan 2012 15:48:40 To: How to use LiveCodeuse-livecode@lists.runrev.com Reply-To: How to use LiveCode use-livecode@lists.runrev.com Subject: Re: Carriage Return

Re: Carriage Return in datagrid data

2012-01-04 Thread Pete
In my haste to implement this, I realised I do not know how to define ascii characters to LC! Is there a function or a numeric notation to do that? Thanks Pete On Mon, Jan 2, 2012 at 5:28 PM, stephen barncard stephenrevoluti...@barncard.com wrote: replace return with VT (vertical tab) ascii

Re: Carriage Return in datagrid data

2012-01-04 Thread Mike Bonner
Are you setting your data using dgtext? If so you might change your method so that you can set the dgdata instead. Put your data into an array with the first key designating the row. So simplest form, if you have say.. a few paragraphs of txt you want to put into your datagrid put mydata into

Re: Carriage Return in datagrid data

2012-01-04 Thread Michael Doub
I agree with Mike that arrays are easier to work with but to answer your question put numtochar(11) into VT replace return with VT in whatever On 2012-01-04, at 2:28 PM, Mike Bonner wrote: Are you setting your data using dgtext? If so you might change your method so that you can set the

Re: Carriage Return in datagrid data

2012-01-04 Thread Pete
Hi Mike, I am using dgText but will try using dgData. Have you tried this? I'm curious as to how the data looks in the datagrid column. I'm using a dg table with a fixed line height so I'm guessing everything after the first return won't be visible? Pete On Wed, Jan 4, 2012 at 11:28 AM, Mike

Re: Carriage Return in datagrid data

2012-01-04 Thread Michael Doub
Let say we have a variable Contacts where each line has 4 tab delimited fields: RecID, Name, Age, BirthDay The following builds the dgData array. The first index controls the order of what is displayed in the datagrid. If you look closely you will see that it[Counter] = pDataArray that you

Re: Carriage Return in datagrid data

2012-01-04 Thread Pete
Hi Mike, Thanks, yes I'm familiar with using dgData - it was how the data looks in the datagrid that I wasn't sure of. I did an experiment with a single column datagrid, loading some text plus a carriage return, plus more text into via dgData. What happens is that all of the text after the

Re: Carriage Return in datagrid data

2012-01-04 Thread Bob Sneidar
Hi Pete. I know I have mentioned it before, but sqlYoga can return query data in the array format that datagrids use. Bob On Jan 4, 2012, at 3:48 PM, Pete wrote: Either way, I probably will convert to using dgData instead of dgText. I kinda prefer using dgData but it's just an extra step

Re: Carriage Return in datagrid data

2012-01-04 Thread mike
-livecode-boun...@lists.runrev.com Date: Wed, 4 Jan 2012 15:48:40 To: How to use LiveCodeuse-livecode@lists.runrev.com Reply-To: How to use LiveCode use-livecode@lists.runrev.com Subject: Re: Carriage Return in datagrid data Hi Mike, Thanks, yes I'm familiar with using dgData - it was how the data

Re: Carriage Return in datagrid data

2012-01-03 Thread Bob Sneidar
Does this happen even when you use dgDataOfIndex or dgDataOfLine? If so, then this would be a great situation for copying the datagrid behavior to a button in the stack and then coding the copy of the behavior scripts to check for the existence of a CR and replace it with a vertical tab