Re: Difference between "html" and "htmlText" in clipboardData?

2017-02-01 Thread J. Landman Gay via use-livecode

On 2/1/17 9:33 PM, Richard Gaskin via use-livecode wrote:

Interestingly, it shows a key for "html" but not "htmlText".

Do you know what the difference between those keys is?

Is this just a bug in the Dictionary and there is no "htmlText", with
the "html" key using LC's htmlText?


They appear to be synonyms; at least, I get the same results with both keys.

--
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: Help: Does anyone use legacy message box behavior?

2017-02-06 Thread J. Landman Gay via use-livecode

On 2/6/17 9:28 PM, Monte Goulding via use-livecode wrote:

Hi Folks

I’m in the midst of making the message box redirect work in all
engines (https://github.com/livecode/livecode/pull/5156
) and it would seem
that there’s a legacy message box behavior that could be removed from
the engine. It’s not used by the IDE. The behavior is if no message
box redirect is set then it looks for a stack named “Message Box”,
sets the text of the first field then raises the stack. As this is
only an IDE thing I strongly suspect we are ok to remove the code but
while I’m waiting for the team to wake up in Scotland I thought I’d
check here!

It would be easy to work around even if you have been depending on it
because it’s just setting the property and then handling msgChanged
to put msg where ever you want.


Do whatever it takes, I've been waiting for this for years. I could 
really use it right now. Debugging standalones is an exercise in 
frustration.


--
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

Nested groups

2017-02-07 Thread J. Landman Gay via use-livecode
Curiosity question: Do multiple nested groups (3 or 4 levels deep) 
affect CPU and memory performance? Are fewer nested groups easier on the 
engine?


--
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: Nested groups

2017-02-07 Thread J. Landman Gay via use-livecode

On 2/7/17 2:13 PM, Richard Gaskin via use-livecode wrote:

J. Landman Gay wrote:


Curiosity question: Do multiple nested groups (3 or 4 levels deep)
affect CPU and memory performance? Are fewer nested groups easier
on the engine?


Because they effectively deepen the message path, I'd wager there is
some difference, at least in terms of initializing the message path as
the objects are unpacked before preOpenCard.

That said, given the speed of the natural message path I'd wager it
would be small enough to be unnoticeable, and perhaps even difficult to
measure.



I was thinking about the amount of redrawing the engine would need to do 
to render them.


--
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: Nested groups

2017-02-07 Thread J. Landman Gay via use-livecode

On 2/7/17 4:07 PM, Paul Dupuis via use-livecode wrote:

On 2/7/2017 5:01 PM, J. Landman Gay via use-livecode wrote:

On 2/7/17 2:13 PM, Richard Gaskin via use-livecode wrote:

J. Landman Gay wrote:


Curiosity question: Do multiple nested groups (3 or 4 levels deep)
affect CPU and memory performance? Are fewer nested groups easier
on the engine?


Because they effectively deepen the message path, I'd wager there is
some difference, at least in terms of initializing the message path as
the objects are unpacked before preOpenCard.

That said, given the speed of the natural message path I'd wager it
would be small enough to be unnoticeable, and perhaps even difficult to
measure.



I was thinking about the amount of redrawing the engine would need to
do to render them.



I have a number of stack with a lot of controls in multiple nested
groups. For me, the groups are primarily for organizing objects on the
card so I can find what I am looking for as a developer. OR when I want
to move a set of related control around. In all such cases, I have never
noticed a visible difference in rendering of the cards vs card with few
groups or fewer controls in a similar number of groups.

This is just human perception. I have never timed renderings to compare.


Thanks. I'm working with a stack that has some memory issues which 
includes many image-rich nested groups. I don't think this is 
contributing directly to the problem but wondered if reducing the number 
of groups might help.


--
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: some, but not all, custom properties survive paste to new stack

2017-02-08 Thread J. Landman Gay via use-livecode

On 2/8/17 3:34 PM, Paul Dupuis via use-livecode wrote:

Now I was reminded the the custom property tab in the Project Browser is
wacky - I would click the add new element "plus", select the default "1"
for the key, rename it, click in the value box and enter a value and
then click on the plus for a new element and the value never got set.


I struggled with that too. You have to hit the Enter key after each 
change. It wasn't intuitive.


--
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


Script locals in library stack script

2017-02-08 Thread J. Landman Gay via use-livecode
I have a splash stack that opens a data stack from a server. The data 
stack has a substack which is used as a library with "start using".


The handlers in the library work okay. Some of them store data in script 
local variables in the library script. The script locals do not retain 
their values, they are almost always empty when the library tries to 
access them later.


Is this something others have seen? LC 8.1.3 rc 1.

--
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: Script locals in library stack script

2017-02-08 Thread J. Landman Gay via use-livecode

On 2/8/17 4:52 PM, Monte Goulding via use-livecode wrote:



On 9 Feb 2017, at 9:32 am, J. Landman Gay via use-livecode
<use-livecode@lists.runrev.com> wrote:

I have a splash stack that opens a data stack from a server. The
data stack has a substack which is used as a library with "start
using".

The handlers in the library work okay. Some of them store data in
script local variables in the library script. The script locals do
not retain their values, they are almost always empty when the
library tries to access them later.

Is this something others have seen? LC 8.1.3 rc 1.


I’m guessing you don’t mean in a separate request on the server. I’m
not aware of anything special about the way server does stuff with
variables so someone would need to chase this down based on a bug
report I think.


Right, after downloading the data stack, for this stuff it's all local 
messaging. I'll try to track it down before submitting a bug, I just 
wondered if this was a known thing. I'm seeing other problems that 
indicate the message path isn't what I expect.


--
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: Browser Widget Appears to be caching data (javascript)?

2017-02-06 Thread J. Landman Gay via use-livecode
I had the DNS caching problem in one project. We had to resort to the "?" 
trick. Without it, different computers or browsers would all load the older 
file, which usually didn't update for 24 hours.


--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.com



On February 6, 2017 10:47:43 AM Bob Sneidar via use-livecode 
 wrote:


Right. But that is the browser cache. If you are talking about a url 
resolving to a different site, that is a function of DNS, which is totally 
separate from the browser cache the browser maintains. I do not think the 
browser is capable of bypassing DNS caching.


But maybe I misunderstand the problem.

Bob S


On Feb 6, 2017, at 08:39 , Mike Bonner via use-livecode 
> wrote:


In an actual browser (at least as far as I know) one doesn't have to resort
to tricks.  Like in chrome, ctrl-f5 bipasses cache and reloads.  More info
here.  https://en.wikipedia.org/wiki/Wikipedia:Bypass_your_cache

___
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: HTML5 and different editions

2017-01-22 Thread J. Landman Gay via use-livecode

On 1/22/17 5:07 PM, hh via use-livecode wrote:

Keith M. wrote:

HTML5 production is part of the LiveCode Community edition, which is
fantastic. It's in the Business edition too, of course. The Indy
edition, however, doesn't allow HTML5 production at all.



In which version do you see this?
I made close to all of my > 50 examples (hh.on-rev.com/html5/) with Indy.
(There are only two versions, 8.0.2 and 9.0.0 there from loading speed reasons.)


HTML5 does not ship with Indy. Those who contributed to the Kickstarter 
can get it though. It can also be purchased as an add-on, I think.


--
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: TextDecode JSON array

2017-01-22 Thread J. Landman Gay via use-livecode

On 1/22/17 1:26 AM, Peter TB Brett via use-livecode wrote:

On 22/01/2017 03:22, J. Landman Gay via use-livecode wrote:

Here's a test sample of some UTF8 I get back from a server:

  {"UserID":48,"UserName":"Eduardo Ba\u00f1uls","UserLoginName":"ebanu"}


Hi Jacque,

This is valid JSON (and also valid ASCII).  In JSON, any character in a
string may be encoded in the form \u where  is the 4-digit
hexadecimal representation of a Unicode codepoint.  No textDecode()
operation is required.

JSONImport() handles this correctly.

1) Create a stack with a field and a button
2) Put the text above into the field
3) Set the script of the button to:


local tJson
put JSONImport(field 1) into tJson
answer tJson["UserName"]


4) Enter browse mode and click the button

You will get an answer dialog displaying "Eduardo Bañuls".


Thank you, and Trevor also, for this. I hadn't heard of importJSON() 
before but it seems to be what I need. I'll take Trevor's advice and 
textDecode the JSON before running it through JSONImport(). All the 
incoming data is being decoded already anyway so I'll just leave that in 
place.


--
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: Boring but important - selling a download product for Windows

2017-01-21 Thread J. Landman Gay via use-livecode

On 1/21/17 1:43 PM, Graham Samuel via use-livecode wrote:

My question is, what do other people do about this? If you generate a
new desktop program for Windows and try to sell it as a download, how
can you strip away all this nonsense for the average purchaser?


One of my clients said she'd had it with Windows installers and now 
ships the product as a zip file. The user is instructed to move the app 
folder out of the zip folder. This is just about the only hitch in the 
process, because Windows presents the zip folder as a regular folder and 
users think they can just double-click the app inside the zip archive.


Other than instructing naive Windows users to drag the app folder out of 
the zip archive, there have been virtually no other issues. The signed 
app itself works fine without interference from the OS.


Windows users have become used to installers and expect them, but if 
your app is self-contained and doesn't require changing registry keys or 
other OS-level stuff, it works pretty well. I know that's not what you 
asked, but that's how we solved it.


--
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: How to lose your work in a couple of clicks (dirty flag)

2017-01-24 Thread J. Landman Gay via use-livecode

On 1/24/17 11:50 AM, Ralph DiMola via use-livecode wrote:

I have been poking around in the IDE stacks and found this. I think it's a bug 
but wanted to run it up the ol' flag pole with the list first before I submit a 
bug report.

Recipe:
1) Open a stack.
2) Make a small change.
3) Build a standalone.
4) When presented with the "Save/Cancel/Don’t save" dialog, click on the "Don't 
save" option.
5) Exit the IDE and you will not get the options to save your stack because the "Don’t 
save" option clears the "Dirty" flag.
6) Re-open the stack in the IDE and observe that your change(s) are not there.

Expected result: User should be present with the option to save the stack when 
exiting the IDE.
Observed result: The user is not asked to save the stack when exiting the IDE.

When the "Cancel" option is selected the "dirty flag is not cleared as I would expect but 
"Don't save" clears it. I think this is wrong. Even if you don't choose to save at that moment The IDE 
should leave the stack marked as "dirty". I could see someone inadvertently losing a lot of work.


This is documented briefly in the dictionary under "savingStandalone". 
When a standalone is made, the stack is closed and removed from memory. 
After it's built, it is re-opened. If you don't save beforehand, changes 
are lost. I think that's just how it has to be.


--
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: Snippet to show status bar on mobile

2017-01-27 Thread J. Landman Gay via use-livecode

On 1/27/17 12:38 AM, Sannyasin Brahmanathaswami via use-livecode wrote:

Do we have control over the layer of the native device top status
status bar?

is it always on topmost layer?  if so then we have to dynamically
hide and show it if we want to occupy the whole screen


It is part of the OS and so overlays the stack. You can hide or show it, 
but it isn't otherwise under LC control. Think of it like the MacOS 
dock, menubar, or any other system element.


--
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: Launch URL with LInk Back to LC App

2017-01-30 Thread J. Landman Gay via use-livecode

On 1/29/17 9:24 PM, Sannyasin Brahmanathaswami via use-livecode wrote:

Is there a way to ensure that the "back button" on any device's web
app, goes back to the card in the stack from which it was invoked by
the "launch ulr" command?


This has to do with the default behavior of LC and the OS it runs on. By 
default, LC mobile apps quit when they are not frontmost. The behavior 
after that depends on the OS.


On Android, the LC app will remain in RAM until the OS needs the memory, 
at which point it will quit. If the user goes back to the LC app before 
it has been removed from memory, the user will return to the place it 
last left off. If the app has been removed, it re-launches to its 
opening screen.


On iOS the app is not retained in RAM, it always quits. Ralph provided 
the work-around that allows the app to run in the background. It is not 
supported and can fail depending on what the app does. If you use it, 
test to make sure it works reliably.


--
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: SubMenu

2017-01-25 Thread J. Landman Gay via use-livecode

On 1/25/17 2:34 PM, Yves COPPE via use-livecode wrote:

How can I create a submenu with the Menu Builder in LiveCode 8.1.2 ?


Create a new menu item in the right-side column. Select the new item and 
click the icon with 3 bars and a right-pointing arrow just above the 
column. (It's under the "Delete Item" button.) That moves it into a submenu.


Really all it does is add a tab before the menu item name. You can do 
that manually too by editing the menu button contents.


--
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


TextDecode JSON array

2017-01-21 Thread J. Landman Gay via use-livecode

Here's a test sample of some UTF8 I get back from a server:

  {"UserID":48,"UserName":"Eduardo Ba\u00f1uls","UserLoginName":"ebanu"}


If I run textDecode(,"UTF8") on it, I get it back unaltered. 
Does anyone recognize the text encoding? It doesn't seem to be UTF8.


If I then run JSONToArray on it, I get a LC array and the name is 
changed to this:


  Eduardo Bañuls

And when I run textDecode on *that* it comes out right:

  Eduardo Bañuls

So what's the first string? JSONtoArray seems to recognize it. I'd like 
to decode the JSON array completely before passing it to JSONtoArray. If 
I can do that, I don't have to loop through all the array keys, decoding 
each one individually.


--
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: TextDecode JSON array

2017-01-21 Thread J. Landman Gay via use-livecode

On 1/21/17 9:22 PM, J. Landman Gay via use-livecode wrote:

Here's a test sample of some UTF8 I get back from a server:

  {"UserID":48,"UserName":"Eduardo Ba\u00f1uls","UserLoginName":"ebanu"}


If I run textDecode(,"UTF8") on it, I get it back unaltered.
Does anyone recognize the text encoding? It doesn't seem to be UTF8.

If I then run JSONToArray on it, I get a LC array and the name is
changed to this:

  Eduardo Bañuls

And when I run textDecode on *that* it comes out right:

  Eduardo Bañuls

So what's the first string? JSONtoArray seems to recognize it. I'd like
to decode the JSON array completely before passing it to JSONtoArray. If
I can do that, I don't have to loop through all the array keys, decoding
each one individually.



Hm. Google says it's C/C++/Java encoding. Not sure what to do with that.

--
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: TextDecode JSON array

2017-01-21 Thread J. Landman Gay via use-livecode
So LC should recognize it without alteration I'd assume, but it doesn't. 
Probably the leading "\u"? I'm still not sure how to handle that.


On 1/21/17 9:29 PM, Mike Bonner via use-livecode wrote:

Looks like utf16 based on this info I found here:
https://codepoints.net/U+00F1?lang=en
SystemRepresentation
Nº 241
UTF-8 C3 B1
UTF-16 00 F1

On Sat, Jan 21, 2017 at 8:22 PM, J. Landman Gay via use-livecode <
use-livecode@lists.runrev.com> wrote:


Here's a test sample of some UTF8 I get back from a server:

  {"UserID":48,"UserName":"Eduardo Ba\u00f1uls","UserLoginName":"ebanu"}


If I run textDecode(,"UTF8") on it, I get it back unaltered. Does
anyone recognize the text encoding? It doesn't seem to be UTF8.

If I then run JSONToArray on it, I get a LC array and the name is changed
to this:

  Eduardo Bañuls

And when I run textDecode on *that* it comes out right:

  Eduardo Bañuls

So what's the first string? JSONtoArray seems to recognize it. I'd like to
decode the JSON array completely before passing it to JSONtoArray. If I can
do that, I don't have to loop through all the array keys, decoding each one
individually.

--
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

___
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




--
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: LC Server & Server Based Stack?

2017-01-20 Thread J. Landman Gay via use-livecode

On 1/20/17 6:00 PM, Rick Harrison via use-livecode wrote:

My next line of code I tried was:

put "I hope this worked!" into field "TestFirstNameField1" of card 1 of this 
stack

It didn’t put anything into that field.


When you are working on a server, you can only see what gets put into 
the browser. There is no stack to examine visually. Anywhere a script 
uses "put" without a destination, the text will go to the browser window 
where you can see it. Anything that is put into the stack itself won't 
be visible.


Each time the server runs a script, it starts from scratch. Nothing is 
saved from previous runs (unless you script it.) So you can't run the 
script on the server and then look at the stack later -- it won't have 
been saved.


Another option if you do want to see a real stack inside a browser is 
the (as yet immature) HTML5 feature. That does put a stack into a 
browser window, with buttons, fields, and all the basic object behaviors 
you are used to. It is still young yet though and has some limitations.


--
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: SubMenu

2017-01-26 Thread J. Landman Gay via use-livecode
I don't see a way to add submenus to the left-hand list. That might be 
the problem. Only the menu items on the right side allow that. If you 
want to create submenus in the main menus on the left, I think you have 
to do it manually in the property inspector by adding tabs in front of 
submenu items.


On 1/26/17 1:31 AM, Yves COPPE via use-livecode wrote:

Hi,

I’ve tried it as you say but this (two) icons with 3 bars are disabled and so 
it doesn’t luck
Any idea ?

Cordialement.

Yves COPPE
yvesco...@mac.com






Le 26 janv. 2017 à 00:42, J. Landman Gay via use-livecode 
<use-livecode@lists.runrev.com> a écrit :

On 1/25/17 2:34 PM, Yves COPPE via use-livecode wrote:

How can I create a submenu with the Menu Builder in LiveCode 8.1.2 ?


Create a new menu item in the right-side column. Select the new item and click the icon 
with 3 bars and a right-pointing arrow just above the column. (It's under the 
"Delete Item" button.) That moves it into a submenu.

Really all it does is add a tab before the menu item name. You can do that 
manually too by editing the menu button contents.

--
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


___
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




--
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: set the menubar activates in-window menu on mac

2017-01-25 Thread J. Landman Gay via use-livecode

On 1/24/17 6:50 PM, Dr. Hawkins via use-livecode wrote:

set the menubar of stack st to stMen

This causes a X-style menu to appear in the stack window, not what I was
aiming for . . .

According to the dictionary, this should simply set the menu, not override.


If the menu should be available to all stacks (on OS X) then you should 
set the defaultMenubar.


If the menu should only be available to a single stack, set the menubar 
as you are doing now, and set the editMenus of the stack to false. This 
will cause the stack to truncate slightly as it scrolls up to hide the 
menu group.


An alternate approach is to simply set the menubar of the stack to a 
hidden menu group. That way no scrolling occurs.


--
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: Storing and object reference in a var

2017-01-24 Thread J. Landman Gay via use-livecode

On 1/24/17 6:12 PM, Monte Goulding via use-livecode wrote:



On 25 Jan 2017, at 10:58 am, Richard Gaskin via use-livecode
 wrote:

Good news:  In v10 the LiveCode language will be reduced to a
single command, "build", which will automatically build whatever
you're imagining.

Bad news:  Requirements for the new interface include a
state-issued mind-reading dongle inserted into your cerebral
cortex, which will grant backdoor access by officials (for your
protection, of course).


Even worse news: The company supplying the mind-reading dongles will
be bought out by a company with an injectable nanobot replacement.
They only need the government contract so promptly brick all the
dongles which has the unfortunate side effect of causing the zombie
apocalypse.


But better news: Zombies will buy anything. We'll be rich.

--
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: Sets props of multiple objects from msg box

2017-02-21 Thread J. Landman Gay via use-livecode

On 2/21/17 8:46 PM, Sannyasin Brahmanathaswami via use-livecode wrote:

select three fields

enter in msg box:

set the margins of the selectedObjects to 10,10,10,10

Expected: margins of all three fields should change

observed: only the first one registers a change in margins
the other two do not.

Is this a bug?


I don't think so, you need to get the selectedObjects and run a loop. I 
think that's how the property inspector does it too. In fact, if this is 
just for development, it's easier to do it in the PI.


--
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: Touch interpretation?

2017-02-20 Thread J. Landman Gay via use-livecode

On 2/20/17 1:00 PM, Ben Rubinstein via use-livecode wrote:

So I've started coding simple heuristics for when a touch sequence is a
tap, a swipe, or a drag; and the next step is to consider when it is
actually a two-finger gesture.

But obviously the community has been there way before me. Are there any
shared libraries developed to implement this? Or at least commonly
agreed good heuristics?


Search the LC Lessons. I found a swipe example here:


but I remember some other lessons that also worked with both swipe and 
taps. Basically, if it isn't a swipe, you implement the tap behavior. 
There are also some lessons on 2-finger swipes in there somewhere. A 
couple that showed up in a search for "2 finger":






--
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: Remote debugger

2017-02-23 Thread J. Landman Gay via use-livecode
Debug mode is on (it always is, but I just checked again.) I set 
gRevDevelopment to true, but no change. It acts like the phone script 
stops at the breakpoint but the IDE doesn't know anything happened.



On 2/24/17 12:39 AM, panagiotis merakos via use-livecode wrote:

Hmm I guess you have checked Script Debug mode, is that correct? Maybe it
is worth typing in the msg box "put true into grevdevelopment" and test
again. This will catch any silent failure in the IDE, if any.

On 24 Feb 2017 06:31, "J. Landman Gay via use-livecode" <
use-livecode@lists.runrev.com> wrote:

Hi Panos,

I did it both ways, with the remote debugger included and without, but got
the same results. It stops the app at the point where it should activate
and nothing else happens.



On 2/24/17 12:21 AM, panagiotis merakos via use-livecode wrote:


Hi Jacque,

Make sure you add the remote debugger inclusion in Inclusions pane. This
should not be necessary in the IDE, but currently you maybe have to do it.

Best,
Panos

On 24 Feb 2017 05:45, "J. Landman Gay via use-livecode" <
use-livecode@lists.runrev.com> wrote:

I jumped all over this right away. I set a breakpoint in a test stack,

tethered my phone to the Mac, and clicked the Test button.

My button script:

on mouseUp
  get "Testing"
  put it into fld 1 -- breakpoint set here
end mouseUP

The app launched on my phone and the script stopped executing at the right
place (nothing went into fld 1) but I wasn't asked if I wanted to start a
debugging session and the IDE didn't go into debug mode.

Is there something else I need to do to in the stack to activate remote
debugging?

Samsung S4, Android 5.0.1

--
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

___

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







--
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: Script locals in library stack script

2017-02-23 Thread J. Landman Gay via use-livecode

On 2/10/17 2:22 PM, J. Landman Gay via use-livecode wrote:

I have set the LC preference to preserve variables. In the past I have
rarely seen a script local lose its value, and never if there has been
no script compile. I don't know exactly when it started but I was in
8.1.3 rc 1 when I noticed it.


In case anyone has been losing sleep over this, it was indeed me. Two 
weeks later while revising my scripts I found the culprit line, 
sandwiched between two large blocks of commented-out code, lurking with 
its head down and its eyes closed. But there was a snicker on its face.


I hit it over the head, put it in a gunny sack, and threw it in the 
river. Our river is frozen right now so I hope it hurt.


--
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: Remote debugger

2017-02-23 Thread J. Landman Gay via use-livecode
How do the sockets communicate? My phone is on wifi, my Mac is ethernet. 
They both go through the same router though.


On 2/24/17 12:21 AM, panagiotis merakos via use-livecode wrote:

Hi Jacque,

Make sure you add the remote debugger inclusion in Inclusions pane. This
should not be necessary in the IDE, but currently you maybe have to do it.

Best,
Panos

On 24 Feb 2017 05:45, "J. Landman Gay via use-livecode" <
use-livecode@lists.runrev.com> wrote:


I jumped all over this right away. I set a breakpoint in a test stack,
tethered my phone to the Mac, and clicked the Test button.

My button script:

on mouseUp
  get "Testing"
  put it into fld 1 -- breakpoint set here
end mouseUP

The app launched on my phone and the script stopped executing at the right
place (nothing went into fld 1) but I wasn't asked if I wanted to start a
debugging session and the IDE didn't go into debug mode.

Is there something else I need to do to in the stack to activate remote
debugging?

Samsung S4, Android 5.0.1

--
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


___
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




--
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: Remote debugger

2017-02-23 Thread J. Landman Gay via use-livecode

Hi Panos,

I did it both ways, with the remote debugger included and without, but 
got the same results. It stops the app at the point where it should 
activate and nothing else happens.



On 2/24/17 12:21 AM, panagiotis merakos via use-livecode wrote:

Hi Jacque,

Make sure you add the remote debugger inclusion in Inclusions pane. This
should not be necessary in the IDE, but currently you maybe have to do it.

Best,
Panos

On 24 Feb 2017 05:45, "J. Landman Gay via use-livecode" <
use-livecode@lists.runrev.com> wrote:


I jumped all over this right away. I set a breakpoint in a test stack,
tethered my phone to the Mac, and clicked the Test button.

My button script:

on mouseUp
  get "Testing"
  put it into fld 1 -- breakpoint set here
end mouseUP

The app launched on my phone and the script stopped executing at the right
place (nothing went into fld 1) but I wasn't asked if I wanted to start a
debugging session and the IDE didn't go into debug mode.

Is there something else I need to do to in the stack to activate remote
debugging?

Samsung S4, Android 5.0.1

--
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


___
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




--
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


Remote debugger

2017-02-23 Thread J. Landman Gay via use-livecode
I jumped all over this right away. I set a breakpoint in a test stack, 
tethered my phone to the Mac, and clicked the Test button.


My button script:

on mouseUp
  get "Testing"
  put it into fld 1 -- breakpoint set here
end mouseUP

The app launched on my phone and the script stopped executing at the 
right place (nothing went into fld 1) but I wasn't asked if I wanted to 
start a debugging session and the IDE didn't go into debug mode.


Is there something else I need to do to in the stack to activate remote 
debugging?


Samsung S4, Android 5.0.1

--
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: Remote debugger

2017-02-24 Thread J. Landman Gay via use-livecode

On 2/24/17 2:36 AM, Monte Goulding via use-livecode wrote:

You need to ensure the internet permission is on for android. We
probably should make that automagicial with the test button..


Oh duh. Of course. I had overlooked the Android permission. Just in 
case, I also added internet and TSNet to the inclusions. Are those 
necessary too? I'm thinking probably not.


So I ran my test stack again and was blown away. This is one of the 
coolest and most needed features we've had in a very long time. In my 
current project I need to get the text of a long error result and was 
about to write an ftp handler so I could move it out of the Android 
sandbox to a place where I could access the text. Now I don't have to, I 
can just get it from the debugger. This is amazing.


I'd suggest that documentation make it clear what permissions and 
inclusions need to be set up. I'm not sure I'd make the permission 
automatic, since the final standalone may not want that permission set 
and the developer will probably forget to unset it, especially if they 
didn't know it was turned on in the first place.


--
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: Goofy Drawing question

2017-02-25 Thread J. Landman Gay via use-livecode

With a paint tool selected, use the "drag" command.

--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.com



On February 25, 2017 6:18:16 AM Richmond Mathewson via use-livecode 
 wrote:



Aah: paint, as I don't really want lots of "artifacts" lying around
after the exercise.

Richmond.

On 2/25/17 12:07 pm, hh via use-livecode wrote:

Assuming you wish to draw, not to paint:

local gg="goofy", fc="255,0,0", ls=3

on mouseUp
   lock screen
   if there is no grc gg then create grc gg
   set style of grc gg to "polygon" -- or "line"
   set points of grc gg to (250,250),(375, 375)
   set lineSize of grc gg to ls
   set forecolor of grc gg to fc
   unlock screen
end mouseUp

___
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: The selectedText for controls without focus

2017-02-24 Thread J. Landman Gay via use-livecode

On 2/24/17 3:33 PM, Bob Sneidar via use-livecode wrote:

Hi Richard. You are "locking" fields. I am setting the traversalOn to
false. The reason I use this is because a locked field will still
show the focus border, which I do not want. I suppose I can lock the
field and lock the field. I will play around with it.


You can turn off the focusborder in the field's property inspector.

--
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: The selectedText for controls without focus

2017-02-24 Thread J. Landman Gay via use-livecode

On 2/24/17 8:18 PM, Bob Sneidar via use-livecode wrote:

Ok I've played with locked, traversalOn, and disabled and the only
thing that alows me to enable/disable editing of the contents of a
field is traversalOn. No combination of the other settings allow me
to select text (in any manner that a user would expect) and yet
prevent the editing of the text.



Set a field to use locktext, traversalOn, and autohilite. You can select 
and copy text without the ability to edit. Command/Control-C is built 
into the engine so you don't need to know what the selection is, the 
engine just does it. Your scripts don't need to do anything to 
accomodate this.


You can't double-click a word to select it, but you can drag.

--
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: Null symbol cross platform

2017-02-22 Thread J. Landman Gay via use-livecode

On 2/22/17 7:15 AM, David V Glasgow via use-livecode wrote:

I have a group displaying a number of single character fields which
can be clicked on to populate other fields.  Essentially a pick list.
One of the options is the null set character ( the O with a line
through it, U+2205).  I have tried to find a cross platform font that
displays it on Mac & Win.  I got some apparently duff info that
Trebuchet would do the trick,  It is OK on Mac, but appears as the
mystery character box on Win standalone.


It may be the difference in the character sets for each platform. If you 
always develop on a Mac, use macToISO() on the character when the 
platform is win32. LC usually does the conversion by itself, but if you 
are populating the list from a custom property, the script has to do it.


If you aren't using a custom property then I'm not sure why it isn't 
translating. Is the list coming from somewhere outside LC? If so, 
textDecode() should work.


--
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: backscripts vs. libraries in 8 with .livecodescript

2017-02-19 Thread J. Landman Gay via use-livecode

On 2/18/17 6:55 PM, Mike Kerner via use-livecode wrote:

Aside from the libraryStack/releaseStack messages, is there any difference
between using a .livecodescript file as a backscript vs a library?


I don't know if it is still true, but when I asked about this in the 
MetaCard days, the only differece was that backscripts get messages 
after the Home stack, and libraries get them before.


--
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: libjson replacement

2017-02-19 Thread J. Landman Gay via use-livecode

On 2/19/17 9:48 AM, Mike Kerner via use-livecode wrote:

Do we have a drop-in replacement for libjson?


We have two: jsonToArray/arrayToJson, in the general dictionary entries, 
and jsonImport in the JSON dictionary category.


--
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: libjson replacement

2017-02-19 Thread J. Landman Gay via use-livecode
I've only used jsonImport to get LC arrays, and the syntax and results 
are the same. As far as I can tell, the main difference is when you have 
json that isn't a JSON object, in which case jsonImport translates it to 
the LC equivalent (list, string, boolean, etc.)


On 2/19/17 3:50 PM, Mike Kerner via use-livecode wrote:

But are the syntax and the results the same?

On Sun, Feb 19, 2017 at 4:46 PM, J. Landman Gay via use-livecode <
use-livecode@lists.runrev.com> wrote:


On 2/19/17 9:48 AM, Mike Kerner via use-livecode wrote:


Do we have a drop-in replacement for libjson?



We have two: jsonToArray/arrayToJson, in the general dictionary entries,
and jsonImport in the JSON dictionary category.

--
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








--
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: Are SVG icons supposed to work on Android?

2017-02-21 Thread J. Landman Gay via use-livecode
I'm using svg in a couple of Android apps and they work fine. You do need 
to make sure that SVG is selected in the Inclusions pane of the standalone 
settings.


--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.com



On February 21, 2017 11:47:35 AM Ben Rubinstein via use-livecode 
 wrote:



per the subject really - I added some snazzy SVG icons into my app, for no
better reason than that I could - but when I built to Android, one of them
didn't appear at all, and when the other is supposed to briefly fade in and
out again, instead a square of approximately the same size does so.

Is this a known issue? (I couldn't find any reference to it, in user guide, or
QCC. Then again, the only reference to SVG in the - 8.1.3 - user guide is to
say that there is a third-party library to import and export.)

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


Re: Deleting stacks on the fly

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

On 2/14/17 12:00 AM, Sannyasin Brahmanathaswami via use-livecode wrote:

Deleting stacks isn't helping. My Nexus 5 has 1 GB free RAM even with
all of Google's widgets and my app open and going from Stack B back
to stack A then deleting StackcB in 10 milliseconds  is "nothing" in
terms of memory requirement, but crashes in Android every time…


My other project is crashing on Android the same way. It also has heavy 
server/internet use. I'm starting to think that's where the problem lies.


--
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: Script locals in library stack script

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

On 2/10/17 5:56 AM, Bob Hall via use-livecode wrote:

I’ve been wondering this myself. I’m going to try to create a recipe
but it looks like the TTL of script local variables is different than
what I thought I knew it to be. I “think” I started see this behavior
about 8.1.0-ish timeframe but not sure.

In the past few months I started to put everything into properties as
I found that my understanding of how script local variables behaved
was different then how they do.


I have set the LC preference to preserve variables. In the past I have 
rarely seen a script local lose its value, and never if there has been 
no script compile. I don't know exactly when it started but I was in 
8.1.3 rc 1 when I noticed it. I spent two days trying to fix the 
problem, eventually gave up and worked around it. The extremely odd 
thing was that the script had three script locals, and only one of them 
lost its value. The other two were fine. It was impossible to track down.


Here is what I was doing:

Stack Main has a substack "InternetLib" that contains all handlers that 
deal with server connections. It is put in use when Main opens. 
InternetLib handles server queries and returns the retrieved data. That 
all works fine. It also has a "setter" handler that can be used to store 
data in a script local variable in its own script, and a "getter" 
handler to return data from the script local.


What happened:

1. Stack Main calls InternetLib to do a query.
2. Stack Main manipulates the returned data, parses out what it needs, 
and calls the "setter" handler to store it in the script local "sVarA" 
in InternetLib.
3. Immediately after the handler ends, Stack Main calls InternetLib to 
do a second query.
4. Stack Main uses the returned data and calls the "setter" handler to 
store the value in InternetLib script local "sVarB".

5. Later, stack Main tries to retrieve a value from sVarA. sVarA is empty.
6. Retrieving data from sVarB is always available.

The third script local, sVarC, always retains its value. It is not 
involved with the above process, it is set earlier when Main is opened.


When tracing through the handlers, it appears that sVarA loses its value 
some time between the first query and the second. What I need to do is 
find a way to track sVarA to see when it changes. There used to be a way 
to do that but I can't remember how, or else I forgot it on purpose 
because it didn't work.


--
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: "Deleting" Stacks in Memory - What About Behaviors?

2017-02-10 Thread J. Landman Gay via use-livecode
How would the engine know whether that behavior is used elsewhere, or will 
be needed in the stack that opens next? The easiest way to get the behavior 
you want, without any scripting, is to put the script in a button in the 
stack. Then when the stack is deleted, the behavior is gone.


If you're using script only stacks, it's not difficult to remove the script 
stack when you no longer need it.



On February 10, 2017 10:45:01 AM Sannyasin Brahmanathaswami via 
use-livecode  wrote:


When we delete a main stack, the main stack and all its substacks are 
removed from memory.


But if we delete a stack that has behaviors set from external 
*_behavior.livecodescript  stacks for controls in the "main" (parent?) 
stack, those behaviors are still in memory.


Does it make sense to file an enhancement request, to at least allow the 
dev to set a preference


__ Delete behavior stacks from memory when stack using them are deleted 
[YES/NO]



--
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: Script locals in library stack script

2017-02-10 Thread J. Landman Gay via use-livecode
I know, that's why I didn't report it. I scoured the script looking for 
a difference but I couldn't find anything, the two queries were executed 
by the same handler. I looked for anything that would empty the variable 
and that wasn't there either.


My current theory is creeping stack corruption. The stack ran with only 
this one oddity, but when I tried to reload it from disk later it was 
reported as corrupted and wouldn't open. I had to open it in BBEdit and 
use a days-old backup in LC to paste in all the changes. Apparently it 
had corrupted several days before, but because I'd left the Mac on with 
the stack open I didn't know.


I've sent the working stack and the corrupted one to bugzilla though I 
don't know if the team can make anything of it. The missing variable 
appeared in LC 8.1.2 so I switched over to LC 9 to see if that helped. 
That's when the stack gave up. I think I'll stay away from 9 until it's 
out of dp, but there's something going on with LC 8 too in some unique 
circumstance. I haven't had any trouble with 8 before now.


On 2/10/17 8:47 PM, Bob Sneidar via use-livecode wrote:

I don't mean to oversimplify, but when customers call complaing that only one 
of several scan to SMB registrations is failing, I have to get them to see that 
if all the others are not failing ever, it cannot be a problem with the copier.

If only one script local is getting reset, then it cannot be that LC is 
resetting script locals because they would ALL reset, not just one.

It may be possible to set a breakpoint on the script local to trigger when it 
becomes empty.

Bob S



On Feb 10, 2017, at 12:22 , J. Landman Gay via use-livecode 
<use-livecode@lists.runrev.com> wrote:

The extremely odd thing was that the script had three script locals, and only 
one of them lost its value. The other two were fine. It was impossible to track 
down.



___
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




--
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: Deleting stacks on the fly

2017-02-14 Thread J. Landman Gay via use-livecode
I frequently delete stacks when memory is an issue, which is the problem 
with Swami's stack suite. I also create almost all new stacks with 
destroystack set to true for the same reason.


--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.com



On February 14, 2017 9:44:36 AM Bob Sneidar via use-livecode 
 wrote:


Is there any reason to delete the stack? If not, don't. Clearly any CtoD 
should be investigated, but I have never seen why an app would be designed 
to create and delete stacks when all you have to do is show and hide 
existing ones.


Bob S


On Feb 13, 2017, at 22:00 , Sannyasin Brahmanathaswami via use-livecode 
 wrote:


   This works if we just use "close stack oStackName"

   but if I change this to "delete stack oStackName"



___
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: Deleting stacks on the fly

2017-02-14 Thread J. Landman Gay via use-livecode
BTW, we're not talking about creating and deleting new stacks on the fly, 
we mean the "delete stack" command that removes an open stack from RAM.

--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.com



On February 14, 2017 10:51:06 AM "J. Landman Gay via use-livecode" 
<use-livecode@lists.runrev.com> wrote:



I frequently delete stacks when memory is an issue, which is the problem
with Swami's stack suite. I also create almost all new stacks with
destroystack set to true for the same reason.

--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.com



On February 14, 2017 9:44:36 AM Bob Sneidar via use-livecode
<use-livecode@lists.runrev.com> wrote:


Is there any reason to delete the stack? If not, don't. Clearly any CtoD
should be investigated, but I have never seen why an app would be designed
to create and delete stacks when all you have to do is show and hide
existing ones.

Bob S



On Feb 13, 2017, at 22:00 , Sannyasin Brahmanathaswami via use-livecode
<use-livecode@lists.runrev.com> wrote:

   This works if we just use "close stack oStackName"

   but if I change this to "delete stack oStackName"



___
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: automating enabling of plugin settings on new versions

2017-02-14 Thread J. Landman Gay via use-livecode

On 2/14/17 4:46 PM, Dr. Hawkins via use-livecode wrote:

Copying plugins on each release opens its own can of worms.


I did that and it works fine. The user plugins folder is shared with all 
copies of LC you have installed. I put my own copy in there some months 
ago after submitting the bug report.


If you don't have a user plugins folder, create one in the My Livecode 
folder. (Whoever named that, I'll find them some day.)


--
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: Deleting stacks on the fly

2017-02-14 Thread J. Landman Gay via use-livecode

On 2/14/17 3:38 PM, Richard Gaskin via use-livecode wrote:

J. Landman Gay wrote:


My other project is crashing on Android the same way. It also has heavy
server/internet use. I'm starting to think that's where the problem lies.


I wonder if that may be related to some of the leaks closed recently.



Would be nice, but it happens in 9.0dp4 too. :( My stack is in the QCC, 
maybe they can figure it out. We have a repeatable recipe.


--
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: automating enabling of plugin settings on new versions

2017-02-14 Thread J. Landman Gay via use-livecode
Instructions are in the bug report, but basically you make a copy of the 
plugin, do whatever you want with it, and put it in your user extensions 
folder. It will override the LC copy.


If you've installed for "this user" then that's who it will apply to. If 
you installed for everyone I assume the change will apply to all users. I 
always install for just me so that's what I'm familiar with.


If LC updates their plugin then you'd have to replace your copy, but as 
they promised me in the report, they'll tell us if that happens.


--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.com



On February 14, 2017 6:57:10 PM "Dr. Hawkins via use-livecode" 
<use-livecode@lists.runrev.com> wrote:



On Tue, Feb 14, 2017 at 4:12 PM, J. Landman Gay via use-livecode <
use-livecode@lists.runrev.com> wrote:



I did that and it works fine. The user plugins folder is shared with all
copies of LC you have installed. I put my own copy in there some months ago
after submitting the bug report.



But as I understand, that is "incorrect" behavior--preferences should be by
user, not shared.

And I'm not sure about doing it from the finder, but in general on unix,if
you move (mv) or copy (cp) folder b to a and there si already a folder a/b,
young  up with a/b/b rather than replacing b.


--
Dr. Richard E. Hawkins, Esq.
(702) 508-8462
___
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


ulExtIsBlocked

2017-02-16 Thread J. Landman Gay via use-livecode

I keep getting this message, both in the IDE and in a standalone:

 Message execution error:
 Error description: Function: error in function handler
 Hint: ulExtIsBlocked

It's either a libURL or TSNet error, so it looks like a thing for 
Charles W. Thoughts? I need a workaround.


--
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: ulExtIsBlocked

2017-02-16 Thread J. Landman Gay via use-livecode
That bug might be related, yes. I can't remember now whether it only 
happened after I built a standalone, but I will pay more attention now. 
Thanks for the pointer, I wasn't sure what the error meant.



On 2/16/17 3:01 AM, Charles Warwick via use-livecode wrote:

Sounds like the tsNetLibUrl stack may have been unloaded.

Is it possible this bug is affecting you?

http://quality.livecode.com/show_bug.cgi?id=18833


On 16/02/2017 6:33 PM, J. Landman Gay via use-livecode wrote:

I keep getting this message, both in the IDE and in a standalone:

 Message execution error:
 Error description: Function: error in function handler
 Hint: ulExtIsBlocked

It's either a libURL or TSNet error, so it looks like a thing for
Charles W. Thoughts? I need a workaround.



--
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


Memory leak?

2017-01-15 Thread J. Landman Gay via use-livecode
I've been watching Activity Monitor on OS X while LC 8.1.2 is running. 
On launch it registered about 52 MB of memory. I opened a stack that has 
no background scripts running, it's completely inert, and after a while 
it jumped to 84 MB memory. I let the computer sleep and left it on all 
night. When I woke up the Mac today it was still at 84 MB. I worked in 
some other apps but never brought LC to the front. After about 30 
minutes it's jumped to 134.7 MB.


The reason I started watching this is because someone else asked me 
about random crashes and his Activity Monitor registered an increase of 
about 10 MB every few minutes.


Does anyone else see this?

--
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: Best practice for menus...

2017-01-17 Thread J. Landman Gay via use-livecode

On 1/17/17 2:27 PM, Richard Gaskin via use-livecode wrote:

I was curious about performance, so I ran the test copied below, with
these results:

  MenuItem: 219 ms
  As text:  10 ms


Do the results change if you lock menus before changing them? 
Manipulating menus, especially on Macs, is expensive and locking menus 
helps to alleviate that. Not sure about other platforms though.


--
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: What has changed in MacOS 10.12 in handling code pages?

2017-01-19 Thread J. Landman Gay via use-livecode

On 1/17/17 11:24 PM, Kay C Lan via use-livecode wrote:

In LC 6.6.5 on OS X 10.11.6 I created a new stack, dragged a field
onto it (i.e. no font specified for the field) and then in the msg
box:

put the effective textFont of field 1
--the result is 'Lucidia Grande'

In LC 9.0.0 dp4 on the same machine if I do the same thing the result
is '(Text)'

If I go into the LC 9 Object Inspector to set the Font of the newly
created field there are a bunch of entries at the top, which you don't
get in 6.6.5, like:
(Default)
(System)
(Text)
(Styled Text)


These are special font names introduced recently, explained in the 
dictionary under "fontnames". Basically these assignments use the 
system-compatible font for the designated category.


--
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: FTP file upload with non-ascii characters in filename

2017-02-28 Thread J. Landman Gay via use-livecode

Maybe textDecode(filename) would work.

--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.com



On February 28, 2017 10:01:47 AM Matthias Rebbe via use-livecode 
 wrote:




Am 28.02.2017 um 16:36 schrieb Bob Sneidar via use-livecode 
>:


Is the need because the files already exist, or is it because you cannot 
control the source of the files? If possible, the files should probably be 
renamed on the other end to make them "compatible" with all file systems. 
If not, then maybe urlEncode/urlDecode or the ISO functions may work for you.




Thanks Bob. That´s what i am doing right now.

As i cannot guarantee that my customer won´t use such filenames, i will 
implement a function that removes and replaces all characters that are 
non-ascii.


Although, i am wondering how ftp clients like transmit are able to handle 
such non-ascii characters. Anyway.


Regards,

Matthias


Bob S


On Feb 28, 2017, at 24:23 , Matthias Rebbe via use-livecode 
> wrote:


Hi,

i need to upload files with non-ascii characters in the filename and this 
has to work on Win and Mac OS X.




Regards,

Matthias
___
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 





Matthias Rebbe
Bramkampsieke 13
32312 Lübbecke
Tel +49 5741 31
+49 160 5504462
Fax: +49 5741 310002
eMail: matth...@m-r-d.de 

BR5 Konverter - BR5 -> MP3 
___
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: CompositorType Android Performance

2017-03-01 Thread J. Landman Gay via use-livecode

On 3/1/17 9:40 PM, Sannyasin Brahmanathaswami via use-livecode wrote:

So I went hunting and found an old thread on the forums, which also
discusses Android performance related to compostorType settings.

There's been no more discussion since  Apr '16


I never did quite understand how to adjust the compositorType and the 
other properties. Shortly after acceleratedRendering was introduced, LC 
started applying default settings for us, and since then I haven't 
bothered to change them. In fact, there's a warning in the dictionary 
that unless we know what we're doing, we're better off leaving the 
defaults alone. So I do.



http://forums.livecode.com/search.php?sid=192d835ccba0ebcb501a069f71a7a11c

 I'm working on Mac and when I query the stack with msg box I get a
compositorType setting of "coreGraphics" but I'm not setting that.


That's the default for Mac. They're listed in the dictionary under 
acceleratedRendering.


--
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: The selectedText for controls without focus

2017-02-28 Thread J. Landman Gay via use-livecode

On 2/28/17 9:58 AM, Bob Sneidar via use-livecode wrote:

I just think that LC should work like virtually every other forms
based app I've ever used, where being editable is not a prerequisite
for copying text.


Did you try the field settings I suggested? It does work, it's already 
built-in:


autoHilite = true
traversalOn = true
locktext = true

This allows selecting and copying but not editing.

--
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: [OT] KOUSEK (or replacement) code snippet manager replacement?

2017-01-13 Thread J. Landman Gay via use-livecode
I looked at Quiver yesterday and downloaded the trial. I don't see a way to 
import a whole folder of files. I have years of snippets in a stack that I 
could export to text files but there are too many to bring in manually.


I tried a couple of the third party import scripts on the site for markdown 
files but they didn't work. Has anyone seen an import script for bulk text 
files?


--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.com



On January 13, 2017 9:05:01 AM pink via use-livecode 
 wrote:



I also use Quiver and recommend it.
I've tried getting the author to include Livecode among the languages
available for "code blocks" (maybe if there's enough of us he'll give it a
shot)

To be honest, most of my most used LC snippets I also keep in a "notebook
stack" which you are more than welcome to play with. All of the snippet data
is saved in the "arrayData" property of the tree widget. Warning... uses
obnoxious hot pink on black color scheme, you may want to adjust ;)

https://www.dropbox.com/s/1sx1a9dhulm4uuj/_MadPink_Notebook.livecode.zip?dl=0

I would recommend against Codebox (no longer under development) and
CodeCollector (keeps changing hands)





--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/OT-KOUSEK-or-replacement-code-snippet-manager-replacement-tp4711599p4711634.html

Sent from the Revolution - User mailing list archive at Nabble.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: Nabble fools one of us

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

On 1/13/17 10:27 AM, hh via use-livecode wrote:

Just in case somebody of us is wondering why he/she suddenly authored *all*
posts of this list since Jan 8 here:

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

I can't see the logic which author is elected as the "one-for-all", but it's
certainly without asking that person and without looking if the person is
using Nabble.

For a while it was Bob S., currently it's Tiemo.
Perhaps the last poster to the list modulo some time shift?
Or is it a platform specific "malfunction"?

May be it is not Nabble but a changed "delivering" procedure?


It's because Heather changed the From: header in order to stop people 
from getting unsubscribed from the list. That worked. But apparently 
Nabble doesn't read the From: header correctly, or does some other kind 
of processing. I believe the problem is with Nabble, which is 
unfortunate because I often use their archives to search the list.


I don't know who first set up the Nabble account but it would be good if 
someone with authority could see if the problem can be fixed, and also 
change "Revolution" to "LiveCode" in the list name.


--
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: Array Properties in a Standalone

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

On 1/10/17 10:53 PM, Bob Sneidar via use-livecode wrote:

It's been my whole understanding of the use of splash stacks that the
stack used to create a standalone is read only, and therefore cannot
be a stack you set properties of, or make any changes to. I had no
idea it became the mainstack in a standalone.


Right. You can make any changes you want, but you can't save them to disk.


This fairly torpedoes my whole portability concept where I go to a
substack of a mainstack and perform some actions, finally setting
some properties of the mainstack. In retrospect now, I can see why
seasoned livecoders don't go in much for the concept of substacks.
However convenient it is to have a single stack file with all the
substacks included, it appears I can no longer do this.


I don't think any of us avoid substacks, I use them all the time in apps 
for resource storage or as libraries. The trick is not to include any 
substacks that need write permissions as part of your standalone. Save 
the substacks out as independent stacks, and add them to the Copy Files 
pane in standalone settings. Those will become independent mainstacks 
and will be writeable (provided you copy them to a writeable location on 
disk first.)


I don't think you'll need to change your scripts much. You could even 
create a different splash stack, save that as the standalone, and have 
it open your original splash stack which is now its own mainstack, just 
as it is in the IDE.


--
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: Array Properties in a Standalone

2017-01-12 Thread J. Landman Gay via use-livecode

On 1/12/17 12:25 PM, Bob Sneidar via use-livecode wrote:

Even though in the standalone settings I have the option to save
substacks as individual stacks unchecked, it does it anyway. It just
puts them in the app package instead of in another folder.


Did you mean "checked"? If checked, that option will extract substacks 
and save them as independent mainstacks. If not checked, they remain 
substacks. If LC isn't behaving that way it's a bug.


In either case, you can't write to the app bundle. If you want to save 
data, you need to copy the stacks to a writable location on first 
launch. The standalone builder can't know where you will want to save 
those stacks, and always places them into a folder you can access with 
specialFolderPath("resources").


--
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: Help: Odd menu behavior under LC6.7.11 on OSX

2017-01-12 Thread J. Landman Gay via use-livecode
For the text issue you can set the theme of the stack to "legacy" and it 
will use the old settings.


What bug are you seeing?
--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.com



On January 12, 2017 5:43:08 AM Roger Eller via use-livecode 
 wrote:



6.7.5 is my poison of choice.  8.x gives an error when it opens.  Bug was
reported several times, but it's still there, even in the latest.  Also, my
Windows applications are tightly spaced in the UI department, and 8.x text
spacing goes crazy. It would take a lot of time to go through everything
and adjust the text spacing.

~Roger

On Jan 12, 2017 3:16 AM, "Richmond Mathewson via use-livecode" <
use-livecode@lists.runrev.com> wrote:


If you want to talk about a "perv": I'm currently using 7.1.4 for all my
development work.

Richmond.

On 1/12/17 12:02 am, Curry Kenworthy via use-livecode wrote:



Richmond:
> Well, the first question anyone is going to ask is why
> on earth you are using 6.7.11?

Don't forget to use "OMG/LOL/derisno/perv" as in for example: "OMG, why
are you using 6.7, are you a total perv? Derisno past! LOL." :)

There is a history to every product, and not only do we learn a lot by
comparing past to present, but the latest version of LC that people take
for granted owes a lot of fixes and some features to Paul in particular due
to his meticulous work and testing, providing a huge benefit to the entire
community!

It's wonderful to keep up with recent LC releases, especially where Apple
is concerned, but sometimes circumstances and LC bugs/features can affect
the speed of that process. Then you have people who grab the latest DP,
precisely because it is the very latest thing, and get confused trying to
tell the difference between their own bugs and DP bugs. I help people with
that often enough to know that a chorus of "just grab the latest" is advice
that needs clarification.

Paul:
> We are seeing a weird menu rendering issues under OSX

I believe this menu issue is also a current bug in LC 8.1.2! Haven't
tried it yet in LC 9, but I will soon. LC 6.6 was okay, so it must have
been introduced in 6.7 and remained until now.

Craig:
> I am hunkered down in v6 until I can swallow the new "look"
> of v8/9. The only thing I really miss from those is the new
> multi-char itemDelimiter.

Change for the sake of change keeps some people incredibly happy, others
less so! The new interface does take some getting used to, and the old
interface definitely had its strengths too, as I've realized lately with
certain particular tasks and with teaching others. Much to learn from
comparing and critiquing LC versions, enjoying the very latest as well as
some past specimens!

Best wishes,

Curry Kenworthy

Custom Software Development
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



___
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: LC Server & Server Based Stack?

2017-01-08 Thread J. Landman Gay via use-livecode
My site is focused on old-style CGI. It's an alternative to LC server 
scripts, which act more like PHP,. Both are viable methods but slightly 
different.


--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.com



On January 8, 2017 2:49:16 PM Stephen Barncard via use-livecode 
 wrote:



Jacque's site is a great resource for livecode server information.

http://www.hyperactivesw.com/cgitutorial/scripts4.html

there doesn't appear to be many of us, but we who use LC server will
probably never have to use PHP very much any more for our web programming.

And the open source version is the only version!

I improperly credited John Craig for RevIgniter, which of course was
written by Ralf Bitter. Sorry about that.

--
Stephen Barncard - Sebastopol Ca. USA -
mixstream.org

On Sun, Jan 8, 2017 at 12:42 PM, Stephen Barncard 
wrote:


some stack use info as used in web app RevIgniter:

https://revigniter.com/userGuide/general/using_stacks.html

by the way, RevIgniter is a self-contained framework that you might find
useful for all kinds of web development in livecode.

It might be a little different than your own programming style, but John
Craig's creation is a living example of the "Model-View-Controller"
concept.

--
Stephen Barncard - Sebastopol Ca. USA -
mixstream.org

On Sun, Jan 8, 2017 at 12:34 PM, Stephen Barncard 
wrote:


here's some basics from the docs

http://lessons.livecode.com/m/4070/l/36656-how-do-i-use-stac
ks-with-livecode-server

--
Stephen Barncard - Sebastopol Ca. USA -
mixstream.org

On Sun, Jan 8, 2017 at 12:17 PM, Rick Harrison via use-livecode <
use-livecode@lists.runrev.com> wrote:


Hi Stephen,

That sounds promising.. do you know of any good examples?

Thanks,

Rick

> On Jan 8, 2017, at 3:12 PM, Stephen Barncard via use-livecode <
use-livecode@lists.runrev.com> wrote:
>
> stacks are great with LC server. For instance, one can use custom
> properties and libraries just by 'start using' that stack.
>
> I'm not sure about fields but I think they are accessible too.
>
> And one can test and edit everything 'on the ground' first.

___
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: Memory leak?

2017-01-15 Thread J. Landman Gay via use-livecode

On 1/15/17 3:40 PM, Jeanne A. E. DeVoto via use-livecode wrote:

At 2:02 PM -0600 1/15/2017, J. Landman Gay via use-livecode wrote:

I've been watching Activity Monitor on OS X while LC 8.1.2 is running.
On launch it registered about 52 MB of memory. I opened a stack that
has no background scripts running, it's completely inert, and after a
while it jumped to 84 MB memory. I let the computer sleep and left it
on all night. When I woke up the Mac today it was still at 84 MB. I
worked in some other apps but never brought LC to the front. After
about 30 minutes it's jumped to 134.7 MB.



Does the stack have a player in it? (Shot in the dark.)


No, though the person who asked me about it uses players. I opened an 
additional small stack with a simple button script in it, clicked the 
button, and the memory went to 153 MB. It had stuck at 134.7 for a 
couple of hours until I did that. I'm pretty sure the difference is the 
size of the stack I opened, but when I "close and remove from memory" 
the size didn't decrease. Seems like it should have.


This could all be normal. I never really paid attention before.

--
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: just some cool stuff

2017-03-27 Thread J. Landman Gay via use-livecode
It was one of those no-salutation, no-message, no-signature emails 
containing nothing but a link. My spam assassin let all four through but I 
have it set to a fairly liberal level. What's yours set to? Maybe I should 
change mine.


--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.com



On March 27, 2017 11:03:20 AM Mark Wieder via use-livecode 
 wrote:



On 03/27/2017 06:17 AM, Bob Sneidar via use-livecode wrote:
My spam filter must have caught it because I have no idea what any of you 
are talking about.


Bob S


Same.
Sonic.net did alert me that there were four messages in my spam filter,
but their SpamAssassin did its job, and the emails never showed up in my
inbox. I have no intention of opening the emails to find out what all
the hoopla is about.

--
  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




___
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: where does the standalonebuilder saves the substacks in an Mac OS App?

2017-03-27 Thread J. Landman Gay via use-livecode

I think that's right, Apple enforces this rule.

The standalone builder will move files to a Resources folder when it 
builds the app. For backward compatibility, scripts that reference the 
engine folder are redirected to the Resources folder automatically.


On 3/27/17 1:22 PM, Bob Sneidar via use-livecode wrote:

To my understanding, it's a requirement in accordance with Apple's
sandboxing policies, if you want an executable to be able to make
changes to files inside the executable bundle. The way it's supposed
to work, no application is allowed to write or modify anything in the
old location where the actual application binary resides, but in the
new location they can.

As an administrative user I am able to copy files to both locations,
but sandboxing is not about folder permissions. It's about executable
permissions and it's baked into the OS so no one can (ostensibly)
change it.

That is my understanding at least. I've not dug in enough to know for
certain.

Bob S



On Mar 27, 2017, at 09:45 , Tiemo Hollmann TB via use-livecode
 wrote:

Hello, "Apple requires" - Is this only a "best practise" guideline
or what will happen if you don't care? I have an old application
just migrated to LC 8, where I am running an independent stack file
in that old dir("Contents/MacOS"), and it is running fine on MacOS
10.12.3 Is there any Apple link about that or are there any
informations, into which issue you can run, if you put files into
the old dir? If you integrate Valentina, they also keep one file in
that directory. Thanks for any info Tiemo



___ 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




--
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: Blowfish digest , how to create in Livecode

2017-03-28 Thread J. Landman Gay via use-livecode
I thought the encrypt /decrypt commands supported blowfish. (Not at my Mac 
to check.)


--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.com



On March 28, 2017 9:33:31 AM Matthias Rebbe via use-livecode 
 wrote:



Hi Peter,


Am 28.03.2017 um 14:58 schrieb Peter TB Brett via use-livecode 
>:




Hi Matthias,

Quick note that you may be affected by this PHP security vulnerability:

http://www.php.net/security/crypt_blowfish.php 





thanks for letting me know, but we running PHP 5.6x on our server. So we 
are not affected by this.





I'm not sure about Blowfish-based `crypt()` with LiveCode, I'm afraid.

I have sent a support request to Runrev 1 or 2 hours ago, so i´ll have to 
wait to see what your colleagues are thinking about it.


Regards,
Matthias




Matthias Rebbe
Bramkampsieke 13
32312 Lübbecke
Tel +49 5741 31
+49 160 5504462
Fax: +49 5741 310002
eMail: matth...@m-r-d.de 

BR5 Konverter - BR5 -> MP3 
___
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: A funny thing happened on the way to the forum.

2017-03-26 Thread J. Landman Gay via use-livecode

On 3/26/17 7:14 AM, Richmond Mathewson via use-livecode wrote:

Cripes . . . Now how was I to know that:


Re: DragDrop makes windows unresponsive OS X

2017-03-24 Thread J. Landman Gay via use-livecode

On 3/24/17 1:03 PM, Bob Sneidar via use-livecode wrote:

constant cModeList = "uppercase,lowercase,numbers,custom"
constant cCustomChars = "!#$%&'*+-/=?^_`{|}~.@"

on dragDrop
   put cleanASCII(the dragData ["text"], cModeList, cCustomChars) into me
   exit to top
end dragDrop


The first thing to try would be replacing "exit to top" with "pass 
dragdrop". If you don't pass the command, the drop doesn't happen.


Everything below is off the top of my head, untested, but here are some 
general ideas.


If "pass" doesn't work, try:

on dragDrop
  put the dragData ["text"] into tText
  set the dragData ["text"] to cleanASCII(tText, cModeList, cCustomChars)
  pass dragDrop
end dragDrop

And if that doesn't work, try:

on dragDrop
  put the dragData ["text"] into tText
  send "cleanUp tText" to me in 0
  pass dragDrop
end dragDrop

on cleanUp pText
  put cleanASCII(me, cModeList, cCustomChars) into me
end cleanUp


--
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: nabble babble

2017-03-24 Thread J. Landman Gay via use-livecode

On 3/24/17 12:19 PM, Roger Eller via use-livecode wrote:

I have always used "the mail archive" site as my X-Talk Time Machine.


How do you search? I've never found a good way to do that in the 
"official" archives.


--
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: DragDrop makes windows unresponsive OS X

2017-03-24 Thread J. Landman Gay via use-livecode

Try the "send" method then, which updates the text after the drop.

On 3/24/17 3:47 PM, Bob Sneidar via use-livecode wrote:

Whoops! Spoke too soon. Still makes the window unresponsive.
Apparently the problem is intermittent. But it also looks like exit
to top without allowing the drop is the only reliable solution.



--
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: DragDrop makes windows unresponsive OS X

2017-03-24 Thread J. Landman Gay via use-livecode
The theory is that something is interfering with the drop, so altering 
the text after the drop completes might fix it. Could be a bug, but 
using "send" may work around it.


On 3/24/17 4:38 PM, Bob Sneidar via use-livecode wrote:

In that case sending would only replace the dropped text. No point in
that. The text is getting into the field using either method. It's
just that the window controls become unresponsive like they might if
a script was still running. Why moving a window or switching focus
would clear the condition I do not know.



--
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: Object Selection Handles

2017-03-28 Thread J. Landman Gay via use-livecode
Just a general agreement here, I also have some issues with the new 
design for selections. The circular handles look strange to me but it's 
an adjustment I can deal with. The dotted outline bothers me more 
because it is harder to see the edges of the object, though I suspect it 
was implemented to match the Project Browser.


The main problem I have with it though is that I can't easily apply and 
observe effects applied to the edges of objects. To see a small shadow, 
for example, I have to de-select the object first. Then if it doesn't 
look right, I have to re-select the object and also re-select both the 
effects pane and the shadow dialog in the inspector, because the 
inspector resets when nothing is selected. That makes adjustments a 
painful process that has to be repeated many times before I get what I'm 
aiming for. That, for me, is the main irritation.


--
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: Getting the JSON library into a standalone

2017-03-17 Thread J. Landman Gay via use-livecode

On 3/17/17 1:16 PM, Jonathan Lynch via use-livecode wrote:

This is in LC 8.1.2.

Can anyone confirm that it is not able to include the JSON functions? Are
there any simple workarounds?


Is there a reason not to use 8.1.3? I remember there was an issue with 
inclusions at some point, so try the latest stable release.


--
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: Android application class

2017-03-17 Thread J. Landman Gay via use-livecode

On 3/17/17 2:43 AM, Richmond via use-livecode wrote:

So, I tried to build a standalone for Android (well, better late than
never) and got a happy
little message:

"could not compile application class"

this with LC 8.1.3 on Xubuntu 14.04


Did you see this?:

http://lessons.livecode.com/m/2571/l/80751-how-do-i-become-an-android-developer-on-linux

--
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: Problem with converting time

2017-03-17 Thread J. Landman Gay via use-livecode

On 03/17/2017 03:52 PM, Michael Doub via use-livecode wrote:


getaData[x]["time"]


Wherever the array is getting its time data, that's where local time is 
happening.


--
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: Scrolling Menu

2017-03-19 Thread J. Landman Gay via use-livecode

On 3/19/17 8:22 PM, Dan Friedman via use-livecode wrote:

Craig,

It’s that the stack this is acting as the menu is higher (taller)
than the screen.  So, the bottom of the stack is below the bottom of
the screen.  Can’t scroll the menu (the stack) to see or select the
button that are out of view.   Hope that makes sense.


I suspect that Craig didn't know that stacks can be menus. I can't think 
of an easy way to get the stack to scroll. There may be a way with some 
intensive scripting, maybe by tracking the mouseLoc and moving all the 
controls up and down.


--
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: Scrolling Menu

2017-03-20 Thread J. Landman Gay via use-livecode

On 3/19/17 10:03 PM, dunbarx via use-livecode wrote:

I actually never tried using a stack as a menu. So I just did. But in both
v6.7 and 8.1.3, if I create and name a new stack, add a single button to it,
and set the "menuName" of the button to the stack name, as soon as I click
on the button, LC crashes and quits.

Was it something I said?


More like something you did. :) I think you put the engine into a loop. 
Back in the old MetaCard days, when I was just a tot and walked to 
school uphill both ways (in a blizzard,) this used to be the only way we 
could make menus. It's still the only way to build a menu that has real 
icons or other non-text elements.


In the menu stack, you put buttons that do stuff, usually in mouseDown 
or mouseUp handlers. Size the stack to about the width of a real system 
menu and make it just enclose its contents. The buttons should be 
edge-to-edge in a vertical column, no borders. Basically you are 
implementing a hand-made menu object. When the user clicks on the 
buttons in the stack, they do menu-like things, like calling a handler 
in the mainstack or whatever. (Your test stack doesn't need any button 
handlers if you're just testing the display.)


Now you need a way to to tell LC to display the stack menu, so you 
create a new button on the mainstack. That's the one that needs the 
menuName, so it knows which stack to draw. When the user clicks this 
mainstack button, it looks up its menuName, finds that stack, and 
displays it.


I wonder what the engine was thinking as it tried to menu-ify a stack 
that was holding the button in the stack that was calling itself to show 
the stack that was holding the button in the stack that was calling 
itself to...


Never mind. You'd think there'd be a recursion warning though.

--
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


Translating escape sequences

2017-03-14 Thread J. Landman Gay via use-livecode
I'm dealing with non-English languages, and JSON data retrieved from a 
database comes in with unicode escape sequences like this: Eduardo 
Ba\u00f1uls.


I need to translate those. I can do it by replacing the "\u" with "0x" 
and then using numToCodepoint() to get the UTF16 character. But there 
could be many of these in the same string, so I'm looking for a one-shot 
command that might just do them all. I don't think we have one.


The alternative is to loop through all the text, getting an offset for 
each "\u" and then calculating the number of characters after that to 
use with numToCodepoint(). But will it always be 4 characters in any 
language?


Or is there an easier way?

--
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: Translating escape sequences

2017-03-15 Thread J. Landman Gay via use-livecode
The problem with the pseudo code is that there's no clear indication of how 
many characters at the end to preserve. I'm not sure how the libraries deal 
with that.


--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.com



On March 15, 2017 2:28:57 AM Richmond Mathewson via use-livecode 
<use-livecode@lists.runrev.com> wrote:



No; it won't always be 4 characters, here's an admittedly extremely
obscure ancient Sinhala number;
0x111F4.

Of course the chances of encountering whacky characters like that is
small, but you'll have to make sure you
can cope with them should they crop up.

If you look at Eduardo Ba\u00f1uls you will have to strip what comes
after the '\' of the prefix 'u'
and the suffix 'uls' and then you can cope with whatever is left:

Reasonably pseudo-code following:

set the item delimiter to \
put what's after the item delimiter into HOLDER
delete char 1 of HOLDER
delete the last char of HOLDER
delete the last char of HOLDER
delete the last char of HOLDER
put "0x" & HOLDER into NUNUM

at this point "NUNUM" could be alost any length, but that should not
matter unduly.

Richmond.

On 3/14/17 11:26 pm, J. Landman Gay via use-livecode wrote:

I'm dealing with non-English languages, and JSON data retrieved from a
database comes in with unicode escape sequences like this: Eduardo
Ba\u00f1uls.

I need to translate those. I can do it by replacing the "\u" with "0x"
and then using numToCodepoint() to get the UTF16 character. But there
could be many of these in the same string, so I'm looking for a
one-shot command that might just do them all. I don't think we have one.

The alternative is to loop through all the text, getting an offset for
each "\u" and then calculating the number of characters after that to
use with numToCodepoint(). But will it always be 4 characters in any
language?

Or is there an easier way?



___
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: Changing a group visible boundaries by script

2017-03-19 Thread J. Landman Gay via use-livecode

On 3/19/17 7:23 PM, Alejandro Tejada via use-livecode wrote:

How could I resize the visible boundary of a group
(with many controls) to show only the rectangle of
the clicked control?


Try setting the group's boundingRect to the rect of the control, then 
setting the rect of the group.


--
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: Password field code to share?

2017-03-21 Thread J. Landman Gay via use-livecode

I've used this simple technique for years:

< 
http://runtime-revolution.278305.n4.nabble.com/custom-password-dialogue-tp290635p290644.html 




--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.com



On March 21, 2017 4:50:02 AM Tiemo Hollmann TB via use-livecode 
 wrote:



Hello,

there have been several solutions for password fields around the community
(Eric Chatonet, .), but all I have seen so far are not complete (e.g. no
copy/paste) or safe in handling or not fully handling all chars. The most
comprehensive solution I have seen is based on the input of "rawKeyDown the
Key" getting the chars, replacing them by asterisk or bullets and storing
the clear password in a custom property. But that solution has a pitfall, it
doesn't works with non standard ASCII characters, like German umlaute,
because  you can't  retrieve the original char from numToChar(theKey) for
theses non standard ASCII chars.

Before inventing the wheel again, I wanted to ask, if anybody has a
sophisticated piece of code for handling a password field willing to share?
"Ask password" is not a solution for my case because the password field is
part of a form.



Thanks

Tiemo







___
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: Translating escape sequence

2017-03-14 Thread J. Landman Gay via use-livecode
Thanks. I actually was using jsonImport() with these strings 
successfully (no wrapper required) but it has a bug on Android that 
makes it unuseable. That's what caused the problem in the first place, 
because jsonToArray() doesn't deal with escape sequences.


So I went ahead and wrote a decoder for escaped sequences that works, 
but found out I still can't use it. If I replace the escapes before 
using jsonToArray(), jsonToArray throws an error; it can't deal with the 
UTF16 strings. And I can't run my decoder through the keys of the 
converted array after jsonToArray is finished, because they are already 
munged into garbage characters by then.


So I'm stuck, I don't see any way to deal with these. I'll put in a bug 
report about jsonImport() but it will probably be a while before it gets 
fixed.


I hope someone else has an idea.

On 3/14/17 7:13 PM, Jim Lambert via use-livecode wrote:



Jacque wrote:

I'm dealing with non-English languages, and JSON data retrieved from a
database comes in with unicode escape sequences like this: Eduardo
Ba\u00f1uls.

I need to translate those. I can do it by replacing the "\u" with "0x"
and then using numToCodepoint() to get the UTF16 character. But there
could be many of these in the same string, so I'm looking for a one-shot
command that might just do them all.



JSONImport does it.
If the escaped string is not in JSON format this function will wrap it in JSON 
then let JSONImport do its thing.

put deEscape("Eduardo Ba\u00f1uls")

function deEscape pEscapedText
put "{'1':'**dummy**'}" into temp
replace "**dummy**" with pEscapedText in temp
replace "'" with quote in temp
put JSONImport(temp)into pArray
return pArray[1]
end deEscape

Roundabout but does the trick.

Jim Lambert
___
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




--
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: Translating escape sequences

2017-03-15 Thread J. Landman Gay via use-livecode

What if the user name has seven characters after the escape sequence?

On 3/15/17 3:16 PM, Richmond Mathewson via use-livecode wrote:

Just knock off the last 3, and what is left is what you want.

Richmond.

On 3/15/17 6:43 pm, J. Landman Gay via use-livecode wrote:

The problem with the pseudo code is that there's no clear indication
of how many characters at the end to preserve. I'm not sure how the
libraries deal with that.

--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.com



On March 15, 2017 2:28:57 AM Richmond Mathewson via use-livecode
<use-livecode@lists.runrev.com> wrote:


No; it won't always be 4 characters, here's an admittedly extremely
obscure ancient Sinhala number;
0x111F4.

Of course the chances of encountering whacky characters like that is
small, but you'll have to make sure you
can cope with them should they crop up.

If you look at Eduardo Ba\u00f1uls you will have to strip what comes
after the '\' of the prefix 'u'
and the suffix 'uls' and then you can cope with whatever is left:

Reasonably pseudo-code following:

set the item delimiter to \
put what's after the item delimiter into HOLDER
delete char 1 of HOLDER
delete the last char of HOLDER
delete the last char of HOLDER
delete the last char of HOLDER
put "0x" & HOLDER into NUNUM

at this point "NUNUM" could be alost any length, but that should not
matter unduly.

Richmond.

On 3/14/17 11:26 pm, J. Landman Gay via use-livecode wrote:

I'm dealing with non-English languages, and JSON data retrieved from a
database comes in with unicode escape sequences like this: Eduardo
Ba\u00f1uls.

I need to translate those. I can do it by replacing the "\u" with "0x"
and then using numToCodepoint() to get the UTF16 character. But there
could be many of these in the same string, so I'm looking for a
one-shot command that might just do them all. I don't think we have
one.

The alternative is to loop through all the text, getting an offset for
each "\u" and then calculating the number of characters after that to
use with numToCodepoint(). But will it always be 4 characters in any
language?

Or is there an easier way?



___
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




--
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: Translating escape sequence

2017-03-15 Thread J. Landman Gay via use-livecode

On 3/14/17 11:58 PM, Phil Davis via use-livecode wrote:

Maybe right after you import the JSON data, preprocess it with something
like this:

set the lineDelimiter to "\u"
repeat for each line tLine in tJsonData
put numToCodePoint("0x" & char 1 to 4 of tLine) & char 5 to -1 of
tLine after tNewData
end repeat
put tNewData into tJsonData

Then go on your merry way. Would that work?


Alas, no. I did something similar earlier this evening. If you replace 
the escaped sequences before running it through jsonToArray, the 
function throws [an error and gives] up. If you run jsonToArray first, 
there are no escapes to process, they are all converted to garbage by then.


But Monte has a fix in the pipes. I think he's been lurking here and 
fixing bugs before I can report them. He just wants us to think he's 
psychic.


I beat him to the bug in jsonImport though.

--
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: Translating escape sequence

2017-03-15 Thread J. Landman Gay via use-livecode

On 3/15/17 12:00 AM, Monte Goulding via use-livecode wrote:

 Try patching it like I have done here 
https://github.com/montegoulding/mergJSON/pull/8


Hey, I figured out how to patch and where they hid your libraries. It 
works! :)


--
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: Translating escape sequence

2017-03-15 Thread J. Landman Gay via use-livecode

On 3/15/17 12:00 AM, Monte Goulding via use-livecode wrote:



On 15 Mar 2017, at 3:28 pm, J. Landman Gay via use-livecode
<use-livecode@lists.runrev.com> wrote:

So I'm stuck, I don't see any way to deal with these. I'll put in a
bug report about jsonImport() but it will probably be a while
before it gets fixed.

I hope someone else has an idea.


I do -)

Jansson (the library that mergJSON uses) does actually handle all
escaped unicode codepoints just fine. There is, however, an issue
with the JSONToArray function. Try patching it like I have done here
https://github.com/montegoulding/mergJSON/pull/8


Cool. :) I'd patch it if I knew how to do that but I don't know enough 
about git to even start. But since you've put in a pull request, I can 
wait until the next dp.


Thanks much, Monte. I owe you another sandwich.

--
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: where does the standalonebuilder saves the substacks in an Mac OS App?

2017-03-15 Thread J. Landman Gay via use-livecode

On 3/14/17 6:58 PM, Matthias Rebbe via use-livecode wrote:

is it correct when the standalone settings of an stack are set to
move substacks into individual stack files that under Mac OS X the
substacks in an compiled app (e.g. test.app) are stored

in 'test.app/Contents/Resources/_MacOS/‘ instead of being stored in
'test.app/Contents/MacOS/'


Yes, Apple required that change a while ago.


And if this is correct, how do i open them? At the moment my button
script (go stack …) , which works for Windows does not open the
substacks in MacOS X. If i move the substacks manually to
'test.app/Contents/MacOS/' then of course my scripts can open them
w/o modification.


Apple doesn't want anything in the folder except the executable now. The 
best way to handle the files is to use specialFolderPath("resources") as 
the directory. That will alway point to the correct location on any OS. 
On Mac, it specifies the Resources folder (and is a synonym for the 
engine folder for legacy stacks.) So your path should be:


 specialFolderPath("resources") & "/stackname.livecode"

It will work on Windows too.

--
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: Translating escape sequences

2017-03-15 Thread J. Landman Gay via use-livecode

On 3/15/17 4:03 PM, Mike Bonner via use-livecode wrote:

does this mean one could replace /u with 0x and then replace uls with empty
and end up with the correct end result?


Aha. Now I know what's been wrong with my scripts. I've been replacing 
*nulls* with empty.


--
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: this stack gets every closeStack message

2017-04-04 Thread J. Landman Gay via use-livecode
Place a breakpoint in the closeStack handler. When it fires and the 
script goes into debug mode, look at the popdown menu button just to the 
right of the debugging icons at the top left of the script window. 
That's the execution contexts, and it tells you what path the message 
took. The top line of the button list is the handler with the 
breakpoint. Choosing each line in order underneath will trace the path 
the message took before it reached your stack's breakpoint.


On 4/4/17 11:55 PM, Matt Maier via use-livecode wrote:

That's already what's happening. This stack is getting every closeStack
message that happens, even the ones that fire off when the IDE's windows
close. It's just a stack opened from a file. It shouldn't be in between the
IDE's windows and the the engine.



--
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: OS X Firewall triggering on launch

2017-04-11 Thread J. Landman Gay via use-livecode

On 4/11/17 1:07 PM, J. Landman Gay via use-livecode wrote:

I just added dp6 to the firewall manually.


And it is still putting up the alert on launch. Seems I'm stuck with it.

--
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: OS X Firewall triggering on launch

2017-04-11 Thread J. Landman Gay via use-livecode

On 4/11/17 1:35 AM, Monte Goulding via use-livecode wrote:


Yes the IDE is accepting connections for the remote debugger to work.
Standalones then open sockets to the IDE. You should only get this
dialog if you don’t allow signed apps to accept connections by
default and/or don’t allow it the first time you run LC. Once you
allow it you shouldn’t see this again unless LC gets modified or
something.


I always answer "yes" to the dialog and I still get it every launch. The 
firewall is set to accept connections to signed software. I see LC 
9.0dp5 in the acceptance list but not dp6. If it matters, the Mac is 
running Mavericks.


--
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: OS X Firewall triggering on launch

2017-04-11 Thread J. Landman Gay via use-livecode

On 4/11/17 1:01 PM, J. Landman Gay via use-livecode wrote:

On 4/11/17 1:35 AM, Monte Goulding via use-livecode wrote:


Yes the IDE is accepting connections for the remote debugger to work.
Standalones then open sockets to the IDE. You should only get this
dialog if you don’t allow signed apps to accept connections by
default and/or don’t allow it the first time you run LC. Once you
allow it you shouldn’t see this again unless LC gets modified or
something.


I always answer "yes" to the dialog and I still get it every launch. The
firewall is set to accept connections to signed software. I see LC
9.0dp5 in the acceptance list but not dp6. If it matters, the Mac is
running Mavericks.



I just added dp6 to the firewall manually. My guess is that the Mac 
reads the name of the app and determines it's a "new" app but when the 
firewall actually checks for it, it sees dp 6 as an update rather than a 
different app and doesn't update its acceptance list. That's purely a 
guess though. It still doesn't explain why the automatic acceptance of 
signed apps doesn't allow the connection by default.


--
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: Gradients with transparency?

2017-04-03 Thread J. Landman Gay via use-livecode

Would exporting a snapshot work well enough for your needs?

--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.com



On April 3, 2017 4:39:07 AM Terry Judd via use-livecode 
 wrote:


Is it possible to have a gradient with one of its end-points being 
transparent instead of a solid colour?


I want to overlay a graphic with a vertical gradient that blends from 
transparent to white to give the effect that the underlying content is 
fading out as you move down the screen. I’m able to achieve this effect 
using a black and white linear gradient in combination with the blendScreen 
ink but I need to be able to export the object (gradient plus underlying 
controls) as an image keeping the effect intact. When I export it now the 
ink effect is lost.


Terry...
___
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: OS X Firewall triggering on launch

2017-04-11 Thread J. Landman Gay via use-livecode

On 4/11/17 5:17 PM, Monte Goulding via use-livecode wrote:



On 12 Apr 2017, at 4:48 am, J. Landman Gay via use-livecode
<use-livecode@lists.runrev.com> wrote:

And it is still putting up the alert on launch. Seems I'm stuck
with it.


Hmm… that’s odd. I’ll ask the team if anyone has any ideas why this
is occurring. Just to make sure you aren’t saving anything within the
LC app bundle are you?


Nope. I just checked the dates on most of the files to be sure and they 
all say March 8, so nothing has changed there. I wonder if it's 
Mavericks. The firewall doesn't seem to recognize LCdp6.


--
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: OS X Firewall triggering on launch

2017-04-11 Thread J. Landman Gay via use-livecode

On 4/11/17 9:17 PM, J. Landman Gay via use-livecode wrote:

On 4/11/17 5:17 PM, Monte Goulding via use-livecode wrote:



On 12 Apr 2017, at 4:48 am, J. Landman Gay via use-livecode
<use-livecode@lists.runrev.com> wrote:

And it is still putting up the alert on launch. Seems I'm stuck
with it.


Hmm… that’s odd. I’ll ask the team if anyone has any ideas why this
is occurring. Just to make sure you aren’t saving anything within the
LC app bundle are you?


Nope. I just checked the dates on most of the files to be sure and they
all say March 8, so nothing has changed there. I wonder if it's
Mavericks. The firewall doesn't seem to recognize LCdp6.



I wrote "Mavericks" but that was a think-o. I'm running El Capitan, in 
case it matters.


--
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: MDM and App deployment

2017-04-05 Thread J. Landman Gay via use-livecode

On 4/5/17 5:17 PM, JOHN PATTEN via use-livecode wrote:

A student iPad can see the app in their Self Service app, but when
they go to install it reports it can’t download at this time.


I don't know if things are different with an Enterprise account, but in 
my experience an app that partially downloads and then errors indicates 
something wrong with the distribution profile.


--
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: Negative Numbers and NumberFormat

2017-04-05 Thread J. Landman Gay via use-livecode

On 4/5/17 2:07 PM, Mark Waddingham via use-livecode wrote:

I should say the bit of engine code which does parsing and
application of the numberformat has been left untouched in terms of
what it does for as long as I can remember... It is one of those
places where a subtle change could break apps quite easily as it is
somewhat hard to see precisely what it should and should not do!


HyperCard distinguished between "#" and "0" and produced different 
results. It sounds like LC doesn't?


--
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: Sort with two sortTypes

2017-04-08 Thread J. Landman Gay via use-livecode

On 4/8/17 12:47 PM, Randy Hengst via use-livecode wrote:

But I can’t figure out how to sort first on item 3, Days and then by
item 2, Time. My goal is sort by matching Days and then by time in
ascending order. The courses meeting on the same day would be grouped
together by time earliest to latest.


Just run the sort twice:

sort lines of field "FIRSTyear_FALL" by item 3 of each
sort lines of field "FIRSTyear_FALL" by item 2 of each

--
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: Sort with two sortTypes

2017-04-08 Thread J. Landman Gay via use-livecode

On 4/8/17 2:26 PM, Jerry Jensen via use-livecode wrote:

Other way around I think. Sort by time first, then sort by day
.Jerry


Right, I got the order mixed up. Smallest first.

--
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: Sort with two sortTypes

2017-04-08 Thread J. Landman Gay via use-livecode

It's because you were channeling me, and I had it wrong.

On 4/8/17 2:58 PM, Randy Hengst via use-livecode wrote:

I tried Jacque’s suggestion multiple times… why I didn’t try
reversing the order I don’t know…



--
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

  1   2   3   4   5   6   7   8   9   10   >