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
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
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
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
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
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
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
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
-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
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
10 matches
Mail list logo