Re: 'manual' Copy and paste of multiple objects to new card ungroups grouped objects

2017-10-13 Thread Mark Wieder via use-livecode

On 10/13/2017 10:45 AM, Bob Sneidar via use-livecode wrote:

That confused me a lot too when I was new until I got used to it. Maybe it should be 
relabeled "Select Groups".


That would make a bit more sense to me.
And then the label could change to "Select Controls".
That way at least there'd only be one paradigm to memorize instead of 
trying to remember whether bold meant On or Off.


--
 Mark Wieder
 ahsoftw...@gmail.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: [ANN] Release 8.2.0 DP-2

2017-10-13 Thread Mark Wieder via use-livecode

On 10/13/2017 12:40 PM, J. Landman Gay via use-livecode wrote:

Seconded. It isn't easy to change the visual settings of controls while 
selected any more.


I think I understand why they did it though. It maches the dotted 
selection in the project browser.




Yeah. One of the reasons I find the PB unusable.

--
 Mark Wieder
 ahsoftw...@gmail.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: DG2 Question

2017-10-13 Thread Mike Kerner via use-livecode
Hopefully the scrolling especially will get some help.  On tablets we have
large tables that go both horizontally and vertically, and the response can
be clunky, especially when compared to mobTableField.

On Fri, Oct 13, 2017 at 4:10 PM, Tom Glod via use-livecode <
use-livecode@lists.runrev.com> wrote:

> yes..thank you for confirming that for me mark. ...I use the datagrid
> extensivel.. the table layout .. wondering if i should expect visible
> performance improvement in the rendering of the rows?
>
> On Fri, Oct 13, 2017 at 2:39 PM, Mark Waddingham via use-livecode <
> use-livecode@lists.runrev.com> wrote:
>
> > The latter - we are adding functionality to the existing datagrid, and
> > also improving accelerated rendering mode so that we can ensure we can
> make
> > the datagrid scroll smoothly on mobile devices (although those
> improvements
> > are generally applicable and not confined to the dg).
> >
> > Warmest Regards,
> >
> > Mark.
> >
> > Sent from my iPhone
> >
> > > On 13 Oct 2017, at 19:28, Tom Glod via use-livecode <
> > use-livecode@lists.runrev.com> wrote:
> > >
> > > Dear people in the know... i have some very quick questions about dg2
> > >
> > > Is dg2 a widget control?
> > > will there be a way to convert dg1 grids to dg2 grids?
> > > or is it more of a facelift to the original dg library coupled with the
> > > graphics improvements?
> > >
> > > Thanks,
> > >
> > > Tom
> > > ___
> > > use-livecode mailing list
> > > use-livecode@lists.runrev.com
> > > Please visit this url to subscribe, unsubscribe and manage your
> > subscription preferences:
> > > http://post.spmailt.com/f/a/thOpgAM_phj-XtZoigsMuQ~~/AAGp3AA~/
> RgRbwlFPP0EIACzv81FfoAlXA3NwY1gEAFkGc2hhcmVkYQdoZWxsb18x
> YAw1Mi4zOS4yNi4xNDRCCgAAzx3hWcr2TmhSHXVzZS1saXZlY29kZUBsaXN0
> cy5ydW5yZXYuY29tCVEEAEQ1aHR0cDovL2xpc3RzLnJ1bnJldi5jb20v
> bWFpbG1hbi9saXN0aW5mby91c2UtbGl2ZWNvZGVHAnt9
> >
> >
> > ___
> > use-livecode mailing list
> > use-livecode@lists.runrev.com
> > Please visit this url to subscribe, unsubscribe and manage your
> > subscription preferences:
> > http://post.spmailt.com/f/a/thOpgAM_phj-XtZoigsMuQ~~/AAGp3AA~/
> RgRbwlFPP0EIACzv81FfoAlXA3NwY1gEAFkGc2hhcmVkYQdoZWxsb18x
> YAw1Mi4zOS4yNi4xNDRCCgAAzx3hWcr2TmhSHXVzZS1saXZlY29kZUBsaXN0
> cy5ydW5yZXYuY29tCVEEAEQ1aHR0cDovL2xpc3RzLnJ1bnJldi5jb20v
> bWFpbG1hbi9saXN0aW5mby91c2UtbGl2ZWNvZGVHAnt9
> >
> ___
> 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
>



-- 
On the first day, God created the heavens and the Earth
On the second day, God created the oceans.
On the third day, God put the animals on hold for a few hours,
   and did a little diving.
And God said, "This is good."
___
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: DG2 Question

2017-10-13 Thread Tom Glod via use-livecode
yes..thank you for confirming that for me mark. ...I use the datagrid
extensivel.. the table layout .. wondering if i should expect visible
performance improvement in the rendering of the rows?

On Fri, Oct 13, 2017 at 2:39 PM, Mark Waddingham via use-livecode <
use-livecode@lists.runrev.com> wrote:

> The latter - we are adding functionality to the existing datagrid, and
> also improving accelerated rendering mode so that we can ensure we can make
> the datagrid scroll smoothly on mobile devices (although those improvements
> are generally applicable and not confined to the dg).
>
> Warmest Regards,
>
> Mark.
>
> Sent from my iPhone
>
> > On 13 Oct 2017, at 19:28, Tom Glod via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> >
> > Dear people in the know... i have some very quick questions about dg2
> >
> > Is dg2 a widget control?
> > will there be a way to convert dg1 grids to dg2 grids?
> > or is it more of a facelift to the original dg library coupled with the
> > graphics improvements?
> >
> > Thanks,
> >
> > Tom
> > ___
> > use-livecode mailing list
> > use-livecode@lists.runrev.com
> > Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> > http://post.spmailt.com/f/a/thOpgAM_phj-XtZoigsMuQ~~/AAGp3AA~/RgRbwlFPP0EIACzv81FfoAlXA3NwY1gEAFkGc2hhcmVkYQdoZWxsb18xYAw1Mi4zOS4yNi4xNDRCCgAAzx3hWcr2TmhSHXVzZS1saXZlY29kZUBsaXN0cy5ydW5yZXYuY29tCVEEAEQ1aHR0cDovL2xpc3RzLnJ1bnJldi5jb20vbWFpbG1hbi9saXN0aW5mby91c2UtbGl2ZWNvZGVHAnt9
>
>
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://post.spmailt.com/f/a/thOpgAM_phj-XtZoigsMuQ~~/AAGp3AA~/RgRbwlFPP0EIACzv81FfoAlXA3NwY1gEAFkGc2hhcmVkYQdoZWxsb18xYAw1Mi4zOS4yNi4xNDRCCgAAzx3hWcr2TmhSHXVzZS1saXZlY29kZUBsaXN0cy5ydW5yZXYuY29tCVEEAEQ1aHR0cDovL2xpc3RzLnJ1bnJldi5jb20vbWFpbG1hbi9saXN0aW5mby91c2UtbGl2ZWNvZGVHAnt9
>
___
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: [ANN] Release 8.2.0 DP-2

2017-10-13 Thread J. Landman Gay via use-livecode

On 10/12/17 3:51 PM, Richard Gaskin via use-livecode wrote:
The dashed border around selected controls certainly makes their 
selected state clear, but it also obscures the object's own border, 
sometimes making it difficult to visualize placement or changes to 
border treatments until I deselect it.


I kinda liked how it used to be, where the only indicators added to a 
selected object were the interactive handles, leaving the rest of the 
object visibly the same so we could evaluate changes made to it as we 
were making them.


Seconded. It isn't easy to change the visual settings of controls while 
selected any more.


I think I understand why they did it though. It maches the dotted 
selection in the project browser.


--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.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: DG2 Question

2017-10-13 Thread Mark Waddingham via use-livecode
The latter - we are adding functionality to the existing datagrid, and also 
improving accelerated rendering mode so that we can ensure we can make the 
datagrid scroll smoothly on mobile devices (although those improvements are 
generally applicable and not confined to the dg).

Warmest Regards,

Mark.

Sent from my iPhone

> On 13 Oct 2017, at 19:28, Tom Glod via use-livecode 
>  wrote:
> 
> Dear people in the know... i have some very quick questions about dg2
> 
> Is dg2 a widget control?
> will there be a way to convert dg1 grids to dg2 grids?
> or is it more of a facelift to the original dg library coupled with the
> graphics improvements?
> 
> Thanks,
> 
> Tom
> ___
> 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


DG2 Question

2017-10-13 Thread Tom Glod via use-livecode
Dear people in the know... i have some very quick questions about dg2

Is dg2 a widget control?
will there be a way to convert dg1 grids to dg2 grids?
or is it more of a facelift to the original dg library coupled with the
graphics improvements?

Thanks,

Tom
___
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: 'manual' Copy and paste of multiple objects to new card ungroups grouped objects

2017-10-13 Thread Bob Sneidar via use-livecode
That confused me a lot too when I was new until I got used to it. Maybe it 
should be relabeled "Select Groups". 

Bob S


> On Oct 13, 2017, at 10:11 , J. Landman Gay via use-livecode 
>  wrote:
> 
> The name of the actual LC property is selectGroupedControls, so the label 
> reflects that. Translated, it means "select controls in groups". Maybe that 
> will help trigger recall.


___
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: libURLLast/xx/headers on mobile?

2017-10-13 Thread Mark Waddingham via use-livecode

On 2017-10-13 12:15, Ben Rubinstein via use-livecode wrote:

I'm trying to debug a case where making some calls to an external API
works fine on desktop, but fails on mobile (both iOS and Android) with
"400 bad request".

Unfortunately it seems that libURLLastHTTPHeaders() and
libURLLastRHHeaders() aren't available on mobile. Is there some other
way to get the information on mobile (especially the latter)?


IIRC, if you are using Indy or Business, then tsNet will provide those 
functions on mobile (it provides a libURL like interface on all 
platforms).


I believe you just need to make sure that you are including the Internet 
library and tsNet inclusion in the s/b.


Warmest Regards,

Mark.

P.S. I'm pretty sure libURL also works on mobile in community - if you 
select the Internet inclusion, although in that case it just plain 
libURL, no tsNet as that requires Indy or Business.


--
Mark Waddingham ~ m...@livecode.com ~ http://www.livecode.com/
LiveCode: Everyone can create apps

___
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: 'manual' Copy and paste of multiple objects to new card ungroups grouped objects

2017-10-13 Thread J. Landman Gay via use-livecode
The name of the actual LC property is selectGroupedControls, so the label 
reflects that. Translated, it means "select controls in groups". Maybe that 
will help trigger recall.



On October 13, 2017 11:05:01 AM David V Glasgow via use-livecode 
 wrote:



Yes, but I knew what he meant!

The label “Select grouped controls”  is a tad ambiguous.

--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.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: 'manual' Copy and paste of multiple objects to new card ungroups grouped objects

2017-10-13 Thread Bob Sneidar via use-livecode
That is the wonderfult thing (and also precarious thing) about humans. We have 
the uncanny ability to interpret probable intent of our communications. As an 
aside, military organizations go to great lengths to train this out of their 
soldiers because of the havoc it can cause. :-)

Bob S


> On Oct 13, 2017, at 09:02 , David V Glasgow via use-livecode 
>  wrote:
> 
> Yes, but I knew what he meant!


___
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: Query Input Form

2017-10-13 Thread Bob Sneidar via use-livecode
Thanks Trevor. I was actually looking for a Livecode stack/card that already 
had the objects and code for adding/deleting conditions for the search. I want 
to upgrade my Forms Generator reporting to be like Crystal Reports, so that I 
could have a card where the user enters a customer searching by name or ID, a 
site by name or ID or address or city, a device or list of devices installed 
on, before, after or within a date range etc. Right now I have the user load 
all that data into an interface and manually select the  items they want from a 
series of datagrids, but this isn't very intuitive to my mind. The coding that 
converts the SQL queries into sqlYoga I can grok well enough. 

I can build the interface myself, but I'm lazy, and someone else would probably 
do a better and cleaner job than me. And I wouldn't mind paying a fee for it 
either. 

Bob S


> On Oct 13, 2017, at 06:58 , Trevor DeVore via use-livecode 
>  wrote:
> 
> On Thu, Oct 12, 2017 at 10:00 AM, Bob Sneidar via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> 
>> Has anyone put together a query input form, that can take simple input
>> from a user, like:
>> customers.customername is/is not/is greater than/is less than/is like
>>  AND/OR
>>  AND/OR
>>  ...
>> 
>> and then build an sql query for it?
>> 
> 
> Bob,
> 
> If you are using SQL Yoga with this project then Scopes will make the SQL
> Query part very straightforward. You would create a scope for each
> condition and then add the scope to the SQL Query object based on the user
> input in the form. SQL Yoga will generate the WHERE clause using any scopes
> that have been added to the SQL Query object.
> 
> http://revolution.screenstepslive.com/s/revolution/m/sqlyoga_sampleapp/l/6637-defining-scopes-to-make-aggregating-search-filters-easier
> 
> -- 
> Trevor DeVore
> ScreenSteps
> www.screensteps.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


Re: 'manual' Copy and paste of multiple objects to new card ungroups grouped objects

2017-10-13 Thread dunbarx via use-livecode
I always have to think twice about of that feature. I really just "see" if it
is bold or not, remembering that bold is for the control, and plain is for
the group.

 It would be far better if it toggled between "Select Group" and "Select
Control" (maybe "Select Grouped Control" is just too wide?).



--
Sent from: 
http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html

___
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: libURLLast/xx/headers on mobile?

2017-10-13 Thread Mike Kerner via use-livecode
and...yep, it bit me, this morning, to the tune of about 90 minutes.  There
are libraries that are similar, but not similar enough, and because you
have to manually select the inclusions, there are times...
Unfortunately, the x64 vs non-x-64 issue is also a problem, because you
can't include the x-64 and the non-x-64 on win standalones for 32-bit
machines, because you'll get an error.

On Fri, Oct 13, 2017 at 9:59 AM, Mike Kerner 
wrote:

> Is there a QR, yet, on a better way to find inclusions that are missing?
> I'm inclined to check everything for desktop apps and be done with it so I
> don't run into weird debugging situations, since in standalone, LC scrips
> just terminate when they run into trouble.
>
> On Fri, Oct 13, 2017 at 8:43 AM, panagiotis merakos via use-livecode <
> use-livecode@lists.runrev.com> wrote:
>
>> Have you added the Internet inclusion to the standalone? (From the
>> inclusions list)
>>
>> Panos
>> --
>>
>> On Oct 13, 2017 11:50, "Malte Pfaff-Brill via use-livecode" <
>> use-livecode@lists.runrev.com> wrote:
>>
>> > > Unfortunately it seems that libURLLastHTTPHeaders() and
>> > libURLLastRHHeaders()
>> > > aren't available on mobile.
>> > Same goes for the server engine,
>> > I could also use it in the server engine, but did not get around to make
>> > this a project to let be implemented by the mothership (of course paying
>> > for the effort)… That said, I might be wanting to take this up again and
>> > cough up a couple of $ in Q1 next year (for the server engine, that is).
>> >
>> > Cheers,
>> >
>> > Malte
>> > ___
>> > 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
>>
>
>
>
> --
> On the first day, God created the heavens and the Earth
> On the second day, God created the oceans.
> On the third day, God put the animals on hold for a few hours,
>and did a little diving.
> And God said, "This is good."
>



-- 
On the first day, God created the heavens and the Earth
On the second day, God created the oceans.
On the third day, God put the animals on hold for a few hours,
   and did a little diving.
And God said, "This is good."
___
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: 'manual' Copy and paste of multiple objects to new card ungroups grouped objects

2017-10-13 Thread David V Glasgow via use-livecode
Yes, but I knew what he meant!

The label “Select grouped controls”  is a tad ambiguous.  When selected means 
“Select controls individually (notwithstanding the fact that they are 
grouped)”.   I admit that’s to verbose a label.  Conversely, unselected state 
selects groups rather than grouped controls.

Best wishes,

David Glasgow
> On 13 Oct 2017, at 4:38 pm, prothero--- via use-livecode 
>  wrote:
> 
> Isn’t this the opposite of what Randy said?
> Bill P
> 
> William Prothero
> http://es.earthednet.org
> 
>> On Oct 13, 2017, at 5:47 AM, dunbarx via use-livecode 
>>  wrote:
>> 
>> Just to be clear, turning OFF "Select Grouped" will allow an intact group to
>> be copied. If that feature is on (made bold), even with all the controls
>> within a group copied to another location, those copies will come over as
>> individual controls, and the group will be lost.
>> 
>> Craig Newman
>> 
>> 
>> 
>> --
>> Sent from: 
>> http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html
>> 
>> ___
>> 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: 'manual' Copy and paste of multiple objects to new card ungroups grouped objects

2017-10-13 Thread prothero--- via use-livecode
Isn’t this the opposite of what Randy said?
Bill P

William Prothero
http://es.earthednet.org

> On Oct 13, 2017, at 5:47 AM, dunbarx via use-livecode 
>  wrote:
> 
> Just to be clear, turning OFF "Select Grouped" will allow an intact group to
> be copied. If that feature is on (made bold), even with all the controls
> within a group copied to another location, those copies will come over as
> individual controls, and the group will be lost.
> 
> Craig Newman
> 
> 
> 
> --
> Sent from: 
> http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html
> 
> ___
> 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: libURLLast/xx/headers on mobile?

2017-10-13 Thread Mike Kerner via use-livecode
Is there a QR, yet, on a better way to find inclusions that are missing?
I'm inclined to check everything for desktop apps and be done with it so I
don't run into weird debugging situations, since in standalone, LC scrips
just terminate when they run into trouble.

On Fri, Oct 13, 2017 at 8:43 AM, panagiotis merakos via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Have you added the Internet inclusion to the standalone? (From the
> inclusions list)
>
> Panos
> --
>
> On Oct 13, 2017 11:50, "Malte Pfaff-Brill via use-livecode" <
> use-livecode@lists.runrev.com> wrote:
>
> > > Unfortunately it seems that libURLLastHTTPHeaders() and
> > libURLLastRHHeaders()
> > > aren't available on mobile.
> > Same goes for the server engine,
> > I could also use it in the server engine, but did not get around to make
> > this a project to let be implemented by the mothership (of course paying
> > for the effort)… That said, I might be wanting to take this up again and
> > cough up a couple of $ in Q1 next year (for the server engine, that is).
> >
> > Cheers,
> >
> > Malte
> > ___
> > 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
>



-- 
On the first day, God created the heavens and the Earth
On the second day, God created the oceans.
On the third day, God put the animals on hold for a few hours,
   and did a little diving.
And God said, "This is good."
___
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: Query Input Form

2017-10-13 Thread Trevor DeVore via use-livecode
On Thu, Oct 12, 2017 at 10:00 AM, Bob Sneidar via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Has anyone put together a query input form, that can take simple input
> from a user, like:
> customers.customername is/is not/is greater than/is less than/is like
>  AND/OR
>  AND/OR
>  ...
>
> and then build an sql query for it?
>

Bob,

If you are using SQL Yoga with this project then Scopes will make the SQL
Query part very straightforward. You would create a scope for each
condition and then add the scope to the SQL Query object based on the user
input in the form. SQL Yoga will generate the WHERE clause using any scopes
that have been added to the SQL Query object.

http://revolution.screenstepslive.com/s/revolution/m/sqlyoga_sampleapp/l/6637-defining-scopes-to-make-aggregating-search-filters-easier

-- 
Trevor DeVore
ScreenSteps
www.screensteps.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: OAuth2 (LC 9) on mobile?

2017-10-13 Thread pink via use-livecode
Have you tried running the app in the iOS simulator as well?



-
---
Greg (pink) Miller
mad, pink and dangerous to code
--
Sent from: 
http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html

___
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: OAuth2 Status?

2017-10-13 Thread pink via use-livecode
After testing out a few things with Panos, the conclusion is corrupted prefs
file.

After deleting my prefs file and starting fresh, everything is working.

With a little bit of shame, I'm going to admit that at one point while
working on my Toodledo library it stopped working and I started freaking out
before I remembered that I had turned off the wifi on my Macbook 

So with the internet out, the OAuth2 panel pops open and stays open, but
remains blank. In the IDE, I just hit command-. a couple of times to
eventually close it. 

Question is, if the user has some sort of connectivity issue, how could they
close the popup? For that matter, what if they just change their mind? On
the login page for Toodledo, they have a cancel button, but pressing it just
causes the page to refresh, it doesn't dismiss the popup. 

How could a user get rid of the panel? 
How could a mobile user get rid of it? 
Is there something programmatically we could add to allow them to more
easily dismiss the panel?



-
---
Greg (pink) Miller
mad, pink and dangerous to code
--
Sent from: 
http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html

___
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: 'manual' Copy and paste of multiple objects to new card ungroups grouped objects

2017-10-13 Thread dunbarx via use-livecode
Just to be clear, turning OFF "Select Grouped" will allow an intact group to
be copied. If that feature is on (made bold), even with all the controls
within a group copied to another location, those copies will come over as
individual controls, and the group will be lost.

Craig Newman



--
Sent from: 
http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html

___
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: libURLLast/xx/headers on mobile?

2017-10-13 Thread panagiotis merakos via use-livecode
Have you added the Internet inclusion to the standalone? (From the
inclusions list)

Panos
--

On Oct 13, 2017 11:50, "Malte Pfaff-Brill via use-livecode" <
use-livecode@lists.runrev.com> wrote:

> > Unfortunately it seems that libURLLastHTTPHeaders() and
> libURLLastRHHeaders()
> > aren't available on mobile.
> Same goes for the server engine,
> I could also use it in the server engine, but did not get around to make
> this a project to let be implemented by the mothership (of course paying
> for the effort)… That said, I might be wanting to take this up again and
> cough up a couple of $ in Q1 next year (for the server engine, that is).
>
> Cheers,
>
> Malte
> ___
> 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: 'manual' Copy and paste of multiple objects to new card ungroups grouped objects

2017-10-13 Thread David V Glasgow via use-livecode
Thank you so much Randy! 

 It never occurred to me that select group mode would apply in this way, but of 
course it makes perfect sense!

Ah well, back to the grindstone.

Thanks again,

David G

> On 13 Oct 2017, at 1:15 pm, Randy Hengst via use-livecode 
>  wrote:
> 
> David,
> 
> They way I’ve done this is to select the whole group before copying… tuning 
> on “Select Group” rather than the individual controls. That has worked fine… 
> scripts are kept.
> 
> randy
> 
>> On Oct 13, 2017, at 5:33 AM, David V Glasgow via use-livecode 
>>  wrote:
>> 
>> Morning folks,
>> 
>> I am on Mac OS 10.12 and using LC 7.1.4
>> 
>> I have been using the IDE menu to copy large numbers of controls from one 
>> card to another card (which is a substack of a different main stack).  It 
>> all looks good, but after doing this for some time, I discovered that all 
>> groups are disappearing, along with any associated scripts.  The once 
>> grouped objects don’t disappear, so at first sight everything looks hunky 
>> dory, but actually is badly broken.
>> 
>> I have searched in the usual places, but can’t see any references to this.
>> 
>> Is this expected behaviour?  Is there any way to preserve groups in a 
>> ‘manual’ copy-paste operation?
>> 
>> 
>> Best Wishes,
>> David Glasgow
>> 
>> 
>>  
>> 
>>  
>> 
>> ___
>> 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: 'manual' Copy and paste of multiple objects to new card ungroups grouped objects

2017-10-13 Thread Randy Hengst via use-livecode
David,

They way I’ve done this is to select the whole group before copying… tuning on 
“Select Group” rather than the individual controls. That has worked fine… 
scripts are kept.

randy

> On Oct 13, 2017, at 5:33 AM, David V Glasgow via use-livecode 
>  wrote:
> 
> Morning folks,
> 
> I am on Mac OS 10.12 and using LC 7.1.4
> 
> I have been using the IDE menu to copy large numbers of controls from one 
> card to another card (which is a substack of a different main stack).  It all 
> looks good, but after doing this for some time, I discovered that all groups 
> are disappearing, along with any associated scripts.  The once grouped 
> objects don’t disappear, so at first sight everything looks hunky dory, but 
> actually is badly broken.
> 
> I have searched in the usual places, but can’t see any references to this.
> 
> Is this expected behaviour?  Is there any way to preserve groups in a 
> ‘manual’ copy-paste operation?
> 
> 
> Best Wishes,
> David Glasgow
> 
> 
>  
> 
>  
> 
> ___
> 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: libURLLast/xx/headers on mobile?

2017-10-13 Thread Malte Pfaff-Brill via use-livecode
> Unfortunately it seems that libURLLastHTTPHeaders() and libURLLastRHHeaders() 
> aren't available on mobile.
Same goes for the server engine, 
I could also use it in the server engine, but did not get around to make this a 
project to let be implemented by the mothership (of course paying for the 
effort)… That said, I might be wanting to take this up again and cough up a 
couple of $ in Q1 next year (for the server engine, that is).

Cheers,

Malte
___
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: Atkinson dither algorithm & 'for each' loop

2017-10-13 Thread Lagi Pittas via use-livecode
HI All

Hoping I'm not teaching my granny to suck eggs ... Here is a great article
I remembered reading  from a few years ago. It's easy to find on google so
you probably know of it ...

http://www.tannerhelland.com/4660/dithering-eleven-algorithms-source-code/

In any case his projects and how he writes about them are interesting

 http://www.tannerhelland.com/programming-directory/

Lagi

On 12 October 2017 at 12:05, Peter Reid via use-livecode <
use-livecode@lists.runrev.com> wrote:

> One note of caution regarding the use of the "repeat for each" loop,
> whilst you will get a loop iteration for every value in the collection
> (fldhexa3 in your example), you are not guaranteed the order in which they
> will occur.  This doesn't matter in a lot of cases but does matter when the
> sequence is significant.  In the case of your example I believe sequence is
> critical, otherwise the pixels might appear to be scrambled!
>
> The following adjusted loop guarantees the sequence at the expense of
> speed:
>
>   put 1 into i
>   repeat for each word theWord in fldhexa3
>  put word i of fldhexa3 into theWord
>  put 00 & theword & theword & theword after tVar2
>  add 1 to i
>   end repeat
>
> The original "improved" loop reduces the run-time to 25%.  However, the
> "modified improved" loop only manages to reduce the original run-time to
> 50%.
>
> The suggested loop above takes advantage of the "for each" mechanism to
> produce a set of iterations very rapidly but gets slowed by the need to
> guarantee sequence. I wonder whether the LC engine could impose strict
> sequence more effectively with a variant of the "for each" loop such as
>
>   repeat for each sequenced word x in theCollection
>  ...
>   end repeat
>
> My own tests, comparing the speed of the 4 common repeat loops, imply that
> the current "for each" form is hugely faster than the others.  I tested
> "repeat for each...", "repeat while...", "repeat until...", "repeat
> with..." and a simulated "repeat for each sequenced..." forms using a
> simple loop body that added lines of text one after another, e.g.
>
>   put empty into tData
>   repeat with i = 1 to tMaxI
> put line i of tList & return after tData
>   end repeat
>
> I ran this test for 250,000 iterations for each type of loop, which
> produced the following timings:
>
>   Starting test for 250,000 iterations...
>   repeat for each... 0 mins 0 secs 111 millisecs
>   repeat while... 0 mins 30 secs 569 millisecs
>   repeat until... 0 mins 30 secs 379 millisecs
>   repeat with... 0 mins 30 secs 341 millisecs
>   repeat for each seq... 0 mins 30 secs 524 millisecs
>
> As you can see, in this test the "repeat for each..." form was approx. 275
> times faster than the other forms.  Also the simulated "repeat for each
> sequenced..." form was no faster than the other forms.  This shows how
> variable the speed will be with the simulated "repeat for each
> sequenced...", depending on the details of the loop body.
>
> If there was a "repeat for each sequenced..." form of loop in LC, any
> speed-up could be very beneficial even if the amount of speed-up was only
> 10 times faster!
>
> Cheers
>
> Peter
> --
> Peter Reid
> Loughborough, UK
>
> > On 9 Oct 2017, at 10:18am, use-livecode-requ...@lists.runrev.com wrote:
> >
> > Message: 12
> > Date: Sat, 7 Oct 2017 15:53:44 +0200
> > From: Malte Pfaff-Brill 
> > To: use-livecode@lists.runrev.com
> > Subject: Re: Atkinson dither algorithm
> > Message-ID: <42023b36-0a4e-4251-bb0c-9cd46de55...@derbrill.de>
> > Content-Type: text/plain; charset=us-ascii
> >
> > Hi Al,
> >
> > I already posted on the forums, but for completeness also here:
> >
> > a lot can be done by replacing repeat with with repeat for each where
> you can.
> >
> > --repeat with i = 1 to the number of words of fldhexa3
> >   --   put 00 & word i of fldhexa3 & word i of fldhexa3 & word i of
> fldhexa3 after tVar2
> >   --end repeat
> >
> >   repeat for each word theWord in fldhexa3
> >  put 00 & theword & theword & theword after tVar2
> >   end repeat
> >
> >
> > A sidenode:
> >
> > I always use strict compile mode, therefore I added the needed variable
> declarations and noticed you use startTime as a variablename, which is a
> reserved keyword. That is not a good idea.  (I noticed, because I managed
> to freeze liveCode where I fixed only half of the use of startTime. Booom.)
> >
> > Cheers,
> >
> > malte
>
>
> ___
> 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


'manual' Copy and paste of multiple objects to new card ungroups grouped objects

2017-10-13 Thread David V Glasgow via use-livecode
Morning folks,

I am on Mac OS 10.12 and using LC 7.1.4

I have been using the IDE menu to copy large numbers of controls from one card 
to another card (which is a substack of a different main stack).  It all looks 
good, but after doing this for some time, I discovered that all groups are 
disappearing, along with any associated scripts.  The once grouped objects 
don’t disappear, so at first sight everything looks hunky dory, but actually is 
badly broken.

I have searched in the usual places, but can’t see any references to this.

Is this expected behaviour?  Is there any way to preserve groups in a ‘manual’ 
copy-paste operation?


Best Wishes,
David Glasgow


  

  
 
___
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: Repeat For Each Iteration Order (was Re: use-livecode Digest, Vol 169, Issue 18)

2017-10-13 Thread Lagi Pittas via use-livecode
Hi All

I feel my IQ goes up by at lest 10 points when I read some of Mark's
detailed answers concerning Livecode internals - and the thought processes
that go into them.

Mark's and many others' answers are worth the price of admission to this
list - thanks a lot Mark for such an erudite exposition of this and other
arcane Livecode concepts.

I have "Joel on Software"  but a" Mark on software" would be a great read
as well.

Lagi

On 12 October 2017 at 18:16, Mark Waddingham via use-livecode <
use-livecode@lists.runrev.com> wrote:

> On 2017-10-12 18:38, Peter Reid via use-livecode wrote:
>
>> I agree that the redundant indexing is an expensive approach, however
>> I have found that this abnormal structure of a repeat for each loop
>> can be a lot faster than the other loop forms in some circumstances.
>>
>> I can't find the reference that first highlighted to me the lack of
>> guaranteed sequence of chunks, but I've assumed this was a restriction
>> for some time. It would be great if this is incorrect as I've got some
>> heavyweight looping in several of my apps that would benefit from
>> this!
>>
>> Can anyone from LiveCode give a definitive answer to this please?
>>
>
> Yes - the previous posts are correct.
>
> If you are using 'repeat for each' to iterate over something which has an
> order, then the iteration will follow that order.
>
> Specifically:
>
>- string chunks (char, item, line, word, trueWord, sentence, paragraph,
> token, codepoint, codeunit) are all ordered
>
>- byte chunks are ordered
>
>- key chunks are unordered (they use the hash-order of the array, which
> can change arbitrarily even within a session)
>
>- element chunks are ordered for arrays which are sequences*, unordered
> for all other arrays
>
> * An array is a sequence if: it has only integer keys, and keys range from
> 1 up to the number of elements in the array.
>   e.g. If the keys are 1, 2, 3, 4 - then that is a sequence; 0, 1, 2, 3 is
> not; 1, 3, 4 is not.
>
> Just to reiterate something Richard mentioned - the performance advantage
> of a 'repeat for each' loop is completely lost if you use a normal chunk
> within the loop to fetch another part (or the same part!) of the container:
>
>   put 0 into tIndex
>   repeat for each word tWord in tString
> add 1 to tIndex
> put word somefunc(tIndex) of tString into tSameWord
> ...
>   end repeat
>
> This is because the chunk evaluation must step through somefunc(tIndex)
> words in the string *again*. (It takes N steps to access the N'th
> string/byte chunk in a container - repeat for each gets its performance
> advantage because it remembers where it got the previous chunk from so it
> can fetch the next, so it is just 1 step each iteration).
>
> The only types of access which are guaranteed not to have this N step
> behavior are codeunit, byte and array accesses:
>
>   - a LiveCode string is (internally) an array of codeunits; which means
> that it takes only one step to get any codeunit in it.
>
>   - a LiveCode binary string is (internally) an array of bytes; so it only
> takes one step to get any byte from it
>
>   - LiveCode arrays are hash-tables, so you can look up any key in one step
>
> Note: If you are using the 'byte' chunk, make sure that the thing they are
> accessing *is* actually a binary string before using it on them. The
> conversion from string -> binary string (which exists for compatibility
> with pre-7 scripts) will cause a performance bump.
>
> In terms of the codeunit/codepoint/character chunks - the engine *tries*
> to ensure it does as little work as possible when accessing these.
> Internally, the engine sets flags on a string so that it can optimize these
> lookups. In particular:
>
>   1) If a string contains only Unicode codepoints from the first 64k
> Unicode codes *without* surrogates (they give access to everything above
> 64k) then codepoint access on that string will be 1 step.
>
>   2) If a string contains characters which are only composed of single
> codepoints in the first 64k Unicode code *without* surrogates, then char
> access on that string will be 1 step.
>
> In particular, if the string you are processing actually came from a
> native string; then (1) and (2) are guaranteed to be the case. However, if
> you have arbitrary Unicode strings, then it won't generally be the case:
>
>   a) any characters which have a Unicode code > 64k must be represented by
> two codes < 64k (surrogate pairs); this means that the engine has to step
> through the string codeunit by codeunit to count the codepoints so it can
> find the one you asked for (N step again)
>
>   b) any characters which are composed of multiple codepoints are in the
> same boat
>
> Case (b) can arise quite often even in Roman script languages. For
> example, in Unicode you can write e-acute as EITHER e,combining-acute (two
> codepoints) OR as e-with-acute (one codepoint). For some languages, most
> characters will be multiple codepoints - e.g. the 

libURLLast/xx/headers on mobile?

2017-10-13 Thread Ben Rubinstein via use-livecode
I'm trying to debug a case where making some calls to an external API works 
fine on desktop, but fails on mobile (both iOS and Android) with "400 bad 
request".


Unfortunately it seems that libURLLastHTTPHeaders() and libURLLastRHHeaders() 
aren't available on mobile. Is there some other way to get the information on 
mobile (especially the latter)?


TIA,

Ben

___
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


Atkinson dither algorithm & 'for each' loop

2017-10-13 Thread Alejandro Tejada via use-livecode
After reading Mark Waddingham explanation, now i am using a sequential
ordered array for this handler. Check this much shorter and faster version:

on mouseUp

   put the millisecs into startTime
   set the cursor to busy

   put the alphadata of img "Image" into tAlphaData
   put the imagedata of img "Image" into tVar
   put the width of img "Image" into tImageWidth
   put the height of img "Image" into tImageHeight
   put the number of chars of tVar into tImgPixels

   if existence(sb the "ThresholdDither") then
  put thumbPos of sb the "ThresholdDither" into tThreshold
   else
  put 127 into tThreshold
   end if

   put numtochar(0) & numtochar(255) & numtochar(255) & numtochar(255) into
tWP
   put numtochar(0) & numtochar(0) & numtochar(0) & numtochar(0) into tBP
   put ((tImageWidth * tImageHeight) - tImageWidth) into tHW

   put ImgToArrayNum(ImgToCh(tVar,1)) into tArray2

   put 0 into tPixelCounter
   put tImgPixels/4 into tPixels
   repeat tPixels

  add 1 to tPixelCounter
  put tPixelCounter into tPixelPosition

  put tArray2[tPixelCounter] into tOldPixelValue

  if round(tOldPixelValue) <= tThreshold then
 put 0 into tNewPixelValue
 put tBP after fldhexa8
 else
 put 255 into tNewPixelValue
 put tWP after fldhexa8
 end if

  put (tOldPixelValue - tNewPixelValue)/8 into tDifusionError

  -- Atkinson dither add the diffusion error
  -- to 6 adjacent pixels
  -- x o o
  --  o o o
  -- o

  if tPixelPosition mod tImageWidth <> 0 then
 -- pixel position is less than image width
 put tPixelCounter + 1 into tNewKey
 put (tDifusionError) + tArray2[tNewKey] into tArray2[tNewKey]

 if tPixelPosition mod (tImageWidth - 1) <> 0 then
-- pixel position is less than image width - 1
put tPixelCounter + 2 into tNewKey
put tDifusionError + tArray2[tNewKey] into tArray2[tNewKey]
 end if
  end if

  if tPixelPosition <= tHW then -- ((tImageWidth * tImageHeight) -
tImageWidth)
 -- pixel position is not in the last line of the image

 if tPixelPosition mod tImageWidth <> 1 then
-- pixel position is not the first pixel in any line of the
image
put (tPixelPosition + tImageWidth - 1) into tNewKey
put (tDifusionError) + tArray2[tNewKey] into tArray2[tNewKey]
 end if

 put (tPixelPosition + tImageWidth) into tNewKey
 put (tDifusionError) + tArray2[tNewKey] into tArray2[tNewKey]

 if tPixelPosition mod tImageWidth <> 0 then
-- pixel position is less than image width
put (tPixelPosition + tImageWidth + 1) into tNewKey
put (tDifusionError) + tArray2[tNewKey] into tArray2[tNewKey]
 end if

 if tPixelPosition <= (tImageWidth * tImageHeight) - (tImageWidth *
2) then
-- pixel position is less than image width - 1
put (tPixelPosition + tImageWidth * 2) into tNewKey
put (tDifusionError) + tArray2[tNewKey] into tArray2[tNewKey]
 end if
  end if

   end repeat

   create img
   set the height of it to the height of img "Image"
   set the width of it to the width of img "Image"
   set the imagedata of it to fldhexa8
   set the alphaData of it to tAlphaData

   put the millisecs - startTime && "milliseconds to create Atkinson Dither
from image's single channel"

end mouseUp

Function ImgToArrayNum vImageData
   -- This function converts binary imagedata to
   -- integer numbers from 0 to 255 into
   -- an array.
   -- vImageData is a single color channel
   -- stored as binary imagedata.

   put empty into tResult
   put 0 into tCounter
   repeat for each char K in vImageData
  add 1 to tCounter
  put chartonum(K) into tResult[tCounter]
   end repeat
   return tResult
end ImgToArrayNum

Function ImgToCh tImageData tChannel
   -- This function returns binary data.
   --
   -- tImageData is unmodified original imagedata of image
   -- with 4 chars for each pixel: 1 alphadata and 3 color channels.
   --
   -- tChannel is a number from 1 to 3:
   -- 1 is red channel, 2 is green channel and 3 is blue channel

   put tImageData into tempVar

   delete char 1 to tChannel of tempVar
   -- the first char of the imagedata is part
   -- of the alphadata or maskdata, so when
   -- we delete char 1, the next char is part
   -- from red channel... if we delete 2 first
   -- chars, then next char is green channel
   -- if we delete 3 first chars, then we get
   -- the blue channel

  repeat until tempVar is empty
  put char 1 of tempVar after tResult
  delete char 1 to 4 of tempVar
   end repeat

   return tResult

end ImgToCh

Have a nice weekend!

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

Re: Microsoft 365 Rest API

2017-10-13 Thread Colin Kelly via use-livecode
Thanks for this Sean, I’m very keen to understand/learn how you’ve put this 
together, there does seem to be a wide need for this by the noise generated in 
this list.
Would be great to see this put on one of the upcoming LiveCode Global Days!

-- 
Colin Kelly
M 07951 920680
 

On 12/10/2017, 13:55, "use-livecode on behalf of Pi Digital via use-livecode" 
 wrote:

I’ve been currently working on a project with another Livecoder making a 
library to work with MS Dynamics365. It turns out that the best way for LC to 
work with it is via their webAPI (as are most things) until v9 is ready. But 
this still means a lot of stuff being put together outside of LC. You first 
need an Azure account setup to enable authentication. You then need someone 
conversant with c#, Visual Basic and .net to write the APIs based on the MS 
SDK. This then needs putting onto a .net server. From there it is really 
straight forward to set up a http header in LC and all of the Post and http 
calls to send and receive data. 

To be honest, the LC side of things is really simple, and our API guy has 
been really good at setting the whole thing up for us. We found him via 
PeoplePerHour and is clearly one of the best in his field. 

It’s been a long process working out how to get it all to work together so 
I’m happy I can now make it easier for members like you, saving you the effort 
of fumbling around (like we did) to find a solution. 

PM me if and when you need more guidance and we can set up a Skype, 
FaceTime or whatever. 

All the best

Sean Cole
Pi Digital
s...@pidigital.co.uk

> On 12 Oct 2017, at 12:52, Colin Kelly via use-livecode 
 wrote:
> 
> Does anyone have any working livecode scripts/libraries to use with the 
Microsoft 365 Rest API for accessing Calendar entries?
> 
> 
> 
> Any help much appreciated.
> 
> 
> 
> -- 
> 
> Colin Kelly
> 
> 
> 
> ___
> 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: OAuth2 (LC 9) on mobile?

2017-10-13 Thread Ben Rubinstein via use-livecode
Now that Greg's Oauth2 issue has been resolved, can I check whether anyone has 
seen the Oauth2 library work on mobile? I don't want to raise an LQCC if it's 
just me doing something wrong!


thanks,

Ben

On 11/10/2017 17:19, Ben Rubinstein via use-livecode wrote:
To clarify, by "everything still works" I mean that the OAuth2 command appears 
to have done "exit to top" without doing anything - but leaving the whole 
screen dimmed out. So other controls on the card, although dim, work. But no 
authorisation has happened.


On 11/10/2017 17:02, Ben Rubinstein via use-livecode wrote:
Does the new OAuth2 library in LC 9 work on mobile? Docs suggest it should, 
but testing on iPad I just get an interesting dimmed out effect on the stack 
- although in fact everything still works - where I would have expected a 
sheet or switching to Safari or some other way of displaying a web page.


TIA,

Ben

___
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: Repeat For Each Iteration Order (was Re: use-livecode Digest, Vol 169, Issue 18)

2017-10-13 Thread Ben Rubinstein via use-livecode


On 12/10/2017 18:16, Mark Waddingham via use-livecode wrote:
    - element chunks are ordered for arrays which are sequences*, unordered 
for all other arrays


* An array is a sequence if: it has only integer keys, and keys range from 1 
up to the number of elements in the array.
   e.g. If the keys are 1, 2, 3, 4 - then that is a sequence; 0, 1, 2, 3 is 
not; 1, 3, 4 is not.


Ooh - I didn't know that! That's very useful, especially now that I've 
switched to using the standard JSON library where we're frequently iterating 
over such sequences.


Ben

___
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