Re: Need to populate array into datagrid

2021-08-11 Thread Bob Sneidar via use-livecode
I have seen this sort of thing before. Try setting the dgData to empty, and 
also the dgText. Further, make sure that the column names of the datagrid match 
the keys of each record in the array. 

Sent from my iPhone

> On Aug 11, 2021, at 12:52, Mark Smith via use-livecode 
>  wrote:
> 
> Skip, are you putting this into a form style or table style datagrid?
> 
> Mark
> 
> 
>> On Aug 11, 2021, at 8:18 PM, Skip Kimpel  wrote:
>> 
>> So yes, I have tried this method but I am only getting the first element to 
>> appear in the data grid ("1,2") in each row
>> None of the other details appear in the datagrid.
>> 
>> SKIP
>> 
>> On Tue, Aug 10, 2021 at 3:24 PM Mark Smith > > wrote:
>> Hi Skip, I’m not sure if this is what you are looking for but if you want to 
>> set the datagrid to display the data in an array you use:
>> 
>> set the dgData of group "DataGrid" to pDataArray
>> 
>> If your data is just delimited text you can use:
>> 
>> set the dgText of group "DataGrid" to pData
>> 
>> Either way tiggers the LayoutControl and FillInData handlers in the 
>> datagrid, so these need to be the same as (or be modified to meet) the 
>> structure of the incoming data.
>> 
>> There is more in the dictionary under dgData and dgText.
>> 
>> Mark
>> 
>> 
 On Aug 10, 2021, at 7:52 PM, Skip Kimpel via use-livecode 
 mailto:use-livecode@lists.runrev.com>> 
 wrote:
>>> 
>>> What is the best way to do this?  I have searched my old code, online
>>> results, etc and cannot find a clear cut answer.  Having said that, it has
>>> been a VERY long time since I have done this so I am part of the "use it or
>>> lose it" club right now.
>>> 
>>> Any help would be greatly appreciated!
>>> 
>>> SKIP
>>> ___
>>> use-livecode mailing list
>>> use-livecode@lists.runrev.com 
>>> Please visit this url to subscribe, unsubscribe and manage your 
>>> subscription preferences:
>>> http://lists.runrev.com/mailman/listinfo/use-livecode 
>>> 
>> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Need to populate array into datagrid

2021-08-11 Thread Mark Smith via use-livecode
Skip, are you putting this into a form style or table style datagrid?

Mark


> On Aug 11, 2021, at 8:18 PM, Skip Kimpel  wrote:
> 
> So yes, I have tried this method but I am only getting the first element to 
> appear in the data grid ("1,2") in each row
> None of the other details appear in the datagrid.
> 
> SKIP
> 
> On Tue, Aug 10, 2021 at 3:24 PM Mark Smith  > wrote:
> Hi Skip, I’m not sure if this is what you are looking for but if you want to 
> set the datagrid to display the data in an array you use:
> 
> set the dgData of group "DataGrid" to pDataArray
> 
> If your data is just delimited text you can use:
> 
> set the dgText of group "DataGrid" to pData
> 
> Either way tiggers the LayoutControl and FillInData handlers in the datagrid, 
> so these need to be the same as (or be modified to meet) the structure of the 
> incoming data.
> 
> There is more in the dictionary under dgData and dgText.
> 
> Mark
> 
> 
>> On Aug 10, 2021, at 7:52 PM, Skip Kimpel via use-livecode 
>> mailto:use-livecode@lists.runrev.com>> wrote:
>> 
>> What is the best way to do this?  I have searched my old code, online
>> results, etc and cannot find a clear cut answer.  Having said that, it has
>> been a VERY long time since I have done this so I am part of the "use it or
>> lose it" club right now.
>> 
>> Any help would be greatly appreciated!
>> 
>> SKIP
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com 
>> Please visit this url to subscribe, unsubscribe and manage your subscription 
>> preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode 
>> 
> 

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Need to populate array into datagrid

2021-08-11 Thread Skip Kimpel via use-livecode
So yes, I have tried this method but I am only getting the first element to
appear in the data grid ("1,2") in each row
None of the other details appear in the datagrid.

SKIP

On Tue, Aug 10, 2021 at 3:24 PM Mark Smith  wrote:

> Hi Skip, I’m not sure if this is what you are looking for but if you want
> to set the datagrid to display the data in an array you use:
>
> set the dgData of group "DataGrid" to pDataArray
>
> If your data is just delimited text you can use:
>
> *set* the dgText of *group* "DataGrid" to pData
>
> Either way tiggers the LayoutControl and FillInData handlers in the
> datagrid, so these need to be the same as (or be modified to meet) the
> structure of the incoming data.
>
> There is more in the dictionary under dgData and dgText.
>
> Mark
>
>
> On Aug 10, 2021, at 7:52 PM, Skip Kimpel via use-livecode <
> use-livecode@lists.runrev.com> wrote:
>
> What is the best way to do this?  I have searched my old code, online
> results, etc and cannot find a clear cut answer.  Having said that, it has
> been a VERY long time since I have done this so I am part of the "use it or
> lose it" club right now.
>
> Any help would be greatly appreciated!
>
> SKIP
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
>
>
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Good math/code lesson from HMS Queen Elizabeth

2021-08-11 Thread Bob Sneidar via use-livecode
Curious, what kind of neurotoxin? We get stingrays on our beaches during warm 
days and calm surf. They come in close to shore to rest and to hide from 
predators. If you get hit by their stinger, they have a toxin which is an 
enzyme catalyst, which will keep eating away at your flesh. There is no 
antidote, but very hot water will break down the enzyme, so the cure is to 
stick your foot (usually what gets stung) in a bucket of hot water, a little 
hotter than you think you can stand, for about 20 minutes to a half hour. 

Bob S


> On Aug 11, 2021, at 04:58 , Curry Kenworthy via use-livecode 
>  wrote:
> 
> Only 1 post this week; typing hurts.
> (Downtime after a neurotoxin exposure.)


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: List fields question...

2021-08-11 Thread Bob Sneidar via use-livecode
Amazing stuff Richard. It's always an inspiration to me, and I hope others also 
to see how creative and useful we can be with Livecode. 

Bob S


> On Aug 10, 2021, at 19:01 , Richard Gaskin via use-livecode 
>  wrote:
> 
> Paul Dupuis wrote:
> 
> >  Using the message watcher is practically useless unless I took the
> >  time to filter out all the existing messages I am not looking for.
> 
> 
> How about in addition to filtering by message name you could also filter by 
> any part of the long name of the object containing the called handler...
> 
> And have results listed in indented outline format so you can easily see the 
> calling chain from user event all the way down...
> 
> And optionally save the session log to a file...
> 
> And have profiling info provided with relative timing and frequency of 
> calls...
> 
> And didn't want to wait for an enhancement request to find its way through 
> the company work queue...
> 
> 
> Here I took a moment to outline 4W Flight Recorder, a free tool I wrote some 
> time ago and rely on every week:
> 
> https://forums.livecode.com/viewtopic.php?f=6&t=35496&p=207822#p207822
> 
> 4W Flight Recorder is available in the Stacks section of the GoLiveNet plugin 
> in the IDE.
> 
> -- 
> Richard Gaskin
> Fourth World Systems
> Software Design and Development for the Desktop, Mobile, and the Web
> 
> ambassa...@fourthworld.comhttp://www.FourthWorld.com
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Good math/code lesson from HMS Queen Elizabeth

2021-08-11 Thread Curry Kenworthy via use-livecode



Only 1 post this week; typing hurts.
(Downtime after a neurotoxin exposure.)

Big fan of the F-35 stealth fighter.
So naturally, the HMS Queen Elizabeth too!
Great journey this year with US and UK jets.

Also a TV show about the ship, "Supercarrier."
One episode had a good math (or code) lesson:

During sea trials, they noticed some vibration.
Almost shrugged it off, but then found damage.
Cause: a bad engineering calculation years ago;
they had trusted and built upon a bad calc.

Luckily it acted up early during the trials,
so no injuries or mission complications.

But a good reminder: build on a firm foundation,
double-check assumptions, and triple test apps!

More news in a week or two

Best wishes,

Curry Kenworthy

Custom Software Development
"Better Methods, Better Results"
LiveCode Training and Consulting
http://livecodeconsulting.com/

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: AW: List fields question...

2021-08-11 Thread Paul Dupuis via use-livecode

Thanks for the info!

On 8/10/2021 10:01 PM, Richard Gaskin via use-livecode wrote:

Paul Dupuis wrote:

>  Using the message watcher is practically useless unless I took the
>  time to filter out all the existing messages I am not looking for.


How about in addition to filtering by message name you could also 
filter by any part of the long name of the object containing the 
called handler...


And have results listed in indented outline format so you can easily 
see the calling chain from user event all the way down...


And optionally save the session log to a file...

And have profiling info provided with relative timing and frequency of 
calls...


And didn't want to wait for an enhancement request to find its way 
through the company work queue...



Here I took a moment to outline 4W Flight Recorder, a free tool I 
wrote some time ago and rely on every week:


https://forums.livecode.com/viewtopic.php?f=6&t=35496&p=207822#p207822

4W Flight Recorder is available in the Stacks section of the GoLiveNet 
plugin in the IDE.





___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode