Re: Weird performance issue

2022-09-23 Thread Craig Newman via use-livecode
Something weird happened to my post.

I modified your handler to access only those stacks that appear when calling 
the function “the stacks”. In all those cases, the return time was only a few 
tenths of a second.

But “revNaviigator” does not appear on that list. So there must be a longer 
pathway for LC to find a stack that certainly must be in memory, but that does 
not appear in the “stacks” list?

Craig

> On Sep 22, 2022, at 3:58 PM, Geoff Canyon via use-livecode 
>  wrote:
> 
> I was testing something for Navigator and found the following:
> 
> put the long seconds into T
> repeat 1
>  get there is a card 1 of stack "untitled 1"
>  --get there is a card 1 of stack "revnavigator"
> end repeat
> put the long seconds - T into T
> put T
> -- puts 0.005 or so
> 
> put the long seconds into T
> repeat 1
>  --get there is a card 1 of stack "untitled 1"
>  get there is a card 1 of stack "revnavigator"
> end repeat
> put the long seconds - T into T
> put T
> -- puts 1.2
> 
> Why in the world would it take over 200x as long to identify that there is
> a card 1 of Navigator vs. a random stack I just created?
> 
> I just checked and:
> stack "message" -- over 3 seconds -- a second run was 0.4
> stack "revdictionary" -- 1.5 seconds
> stack "home" -- 0.02 seconds
> 
> I ran it across everything in the environment and got results from under a
> hundredth of a second to over a second, with stacks pretty smoothly across
> that range. No clue what's causing it.
> ___
> 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: Weird performance issue

2022-09-23 Thread Craig Newman via use-livecode
Geoff.

I get over 5 seconds for the “revNavigatior”

So I modified your handler just a bit, to only a

But “revNaviigator” does not appear on that list. So there must be a longer 
pathway for LC to find a stack that certainly must be in memory, but that does 
not appear in the “stacks” list?

Craig

> On Sep 22, 2022, at 3:58 PM, Geoff Canyon via use-livecode 
>  wrote:
> 
> put the long seconds into T
> repeat 1
>  get there is a card 1 of stack "untitled 1"
>  --get there is a card 1 of stack "revnavigator"
> end repeat
> put the long seconds - T into T
> put T
> -- puts 0.005 or so
> 
> put the long seconds into T
> repeat 1
>  --get there is a card 1 of stack "untitled 1"
>  get there is a card 1 of stack "revnavigator"
> end repeat
> put the long seconds - T into T
> put T
> -- puts 1.2

___
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: Shouldn't space or enter in a menu select the hilited item?

2022-08-16 Thread Craig Newman via use-livecode
Bob.

You can always roll your own,

Craig

> On Aug 15, 2022, at 6:16 PM, Bob Sneidar via use-livecode 
>  wrote:
> 
> I should also mention that menuPick IS getting triggered, but if I use 
> spacebar or return to select, the parameter for which item got picked is 
> empty. If I click then the parameter is NOT empty it's the item I clicked. 
> 
> Bob S
> 
> 
>> On Aug 15, 2022, at 15:03 , Bob Sneidar via use-livecode 
>>  wrote:
>> 
>> Hi Craig. It's not a popup menu it's a combo box. I do use popup menus and 
>> those work as advertized. 
>> 
>> When I click to expand a combo box menu, it I get the list of items, and if 
>> I click an item, it correctly selects that item. If however I use the arrow 
>> keys to hilite an item then use the space bar or return to select the 
>> hilited item, the hilited item is NOT selected, it retains it's previous 
>> label. 
>> 
>> Bob S
>> 
>> 
>>> On Aug 15, 2022, at 11:03 , Craig Newman via use-livecode 
>>>  wrote:
>>> 
>>> Hi, I was not complete. Once the arrow keys have found the menuItem of 
>>> interest, clicking Enter or Return executes the menuPick handler.
>>> 
>>> Craig
>>> 
>>>> On Aug 12, 2022, at 7:37 PM, Bob Sneidar via use-livecode 
>>>>  wrote:
>>>> 
>>>> Hi all. Very odd, I thought this worked. 
>>>> 
>>>> I am programmatically popping up a menu, then I want to be able to jse the 
>>>> arrow keys to traverse the selections available. If I click any of the 
>>>> choices, the menuPick handler gets the choice as the first parameter. If 
>>>> however I use the spacebar or the enterKey to select a choice, the 
>>>> parameter is empty in menuPick! That isn't right, is it??
>>>> 
>>>> MacOS 10.15.7 LC 9.6.9 rc1
>>>> 
>>>> Bob S
>>>> 
>>>> 
>>>> ___
>>>> 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


___
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: Shouldn't space or enter in a menu select the hilited item?

2022-08-16 Thread Craig Newman via use-livecode
Yes, the combo box does not return the “selected” menuItem. Likely something to 
do with its compound nature.

> On Aug 15, 2022, at 6:16 PM, Bob Sneidar via use-livecode 
>  wrote:
> 
> I should also mention that menuPick IS getting triggered, but if I use 
> spacebar or return to select, the parameter for which item got picked is 
> empty. If I click then the parameter is NOT empty it's the item I clicked. 
> 
> Bob S
> 
> 
>> On Aug 15, 2022, at 15:03 , Bob Sneidar via use-livecode 
>>  wrote:
>> 
>> Hi Craig. It's not a popup menu it's a combo box. I do use popup menus and 
>> those work as advertized. 
>> 
>> When I click to expand a combo box menu, it I get the list of items, and if 
>> I click an item, it correctly selects that item. If however I use the arrow 
>> keys to hilite an item then use the space bar or return to select the 
>> hilited item, the hilited item is NOT selected, it retains it's previous 
>> label. 
>> 
>> Bob S
>> 
>> 
>>> On Aug 15, 2022, at 11:03 , Craig Newman via use-livecode 
>>>  wrote:
>>> 
>>> Hi, I was not complete. Once the arrow keys have found the menuItem of 
>>> interest, clicking Enter or Return executes the menuPick handler.
>>> 
>>> Craig
>>> 
>>>> On Aug 12, 2022, at 7:37 PM, Bob Sneidar via use-livecode 
>>>>  wrote:
>>>> 
>>>> Hi all. Very odd, I thought this worked. 
>>>> 
>>>> I am programmatically popping up a menu, then I want to be able to jse the 
>>>> arrow keys to traverse the selections available. If I click any of the 
>>>> choices, the menuPick handler gets the choice as the first parameter. If 
>>>> however I use the spacebar or the enterKey to select a choice, the 
>>>> parameter is empty in menuPick! That isn't right, is it??
>>>> 
>>>> MacOS 10.15.7 LC 9.6.9 rc1
>>>> 
>>>> Bob S
>>>> 
>>>> 
>>>> ___
>>>> 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


___
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: Shouldn't space or enter in a menu select the hilited item?

2022-08-15 Thread Craig Newman via use-livecode
Hi, I was not complete. Once the arrow keys have found the menuItem of 
interest, clicking Enter or Return executes the menuPick handler.

Craig

> On Aug 12, 2022, at 7:37 PM, Bob Sneidar via use-livecode 
>  wrote:
> 
> Hi all. Very odd, I thought this worked. 
> 
> I am programmatically popping up a menu, then I want to be able to jse the 
> arrow keys to traverse the selections available. If I click any of the 
> choices, the menuPick handler gets the choice as the first parameter. If 
> however I use the spacebar or the enterKey to select a choice, the parameter 
> is empty in menuPick! That isn't right, is it??
> 
> MacOS 10.15.7 LC 9.6.9 rc1
> 
> Bob S
> 
> 
> ___
> 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: Shouldn't space or enter in a menu select the hilited item?

2022-08-15 Thread Craig Newman via use-livecode
Hi.

I am missing something. Make a popup menu button. Ina mouseUp handler in 
another button:

on mouseUp
  click at the loc of btn 1
end mouseUp

Once the menu is open, the up and down arrow keys navigate among the menuItems.

Craig

> On Aug 12, 2022, at 7:37 PM, Bob Sneidar via use-livecode 
>  wrote:
> 
> Hi all. Very odd, I thought this worked. 
> 
> I am programmatically popping up a menu, then I want to be able to jse the 
> arrow keys to traverse the selections available. If I click any of the 
> choices, the menuPick handler gets the choice as the first parameter. If 
> however I use the spacebar or the enterKey to select a choice, the parameter 
> is empty in menuPick! That isn't right, is it??
> 
> MacOS 10.15.7 LC 9.6.9 rc1
> 
> Bob S
> 
> 
> ___
> 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: Datagrid internal error

2022-08-10 Thread Craig Newman via use-livecode
Paul.

All I saw was this:

"I believe there is a property you set, after which you programmatically 
control the population of the datagrid. I am in a hurry so I can't look it up 
right now, but it is in the datagrid API in livecode lessons. 

Which is why I mentioned that the bulk of the thread must not have come to me.

Craig
___
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: Datagrid internal error

2022-08-10 Thread Craig Newman via use-livecode
This seems like a fragment of a longer thread, but the “dgText” and the 
“dgData” are the two methods I use to extract, process and reload the content 
of a data grid.

Craig

> On Aug 9, 2022, at 11:09 AM, Bob Sneidar via use-livecode 
>  wrote:
> 
> I believe there is a property you set, after which you programmatically 
> control the population of the datagrid. I am in a hurry so I can't look it up 
> right now, but it is in the datagrid API in livecode lessons. 
> 
> Bob S
> 
> 
>> On Aug 9, 2022, at 05:09 , Paul Dupuis via use-livecode 
>>  wrote:
>> 
>> I can only image that the customer entered a name with some characters that 
>> Datagrid has a problem with as a column name OR that the shear number of 
>> columns (as the customer is working with a very large dataset) exceeds some 
>> practical Datagrid limit, but what would that be?
> 
> 
> ___
> 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: Dispatch

2022-08-03 Thread Craig Newman via use-livecode
Hi.

“Send” and “Dispatch” do much the same thing, but they do differ in how they 
interact with the message patch. They also each include their own personal 
gadgetry that comes in handy in different scenarios. Read about both in the 
dictionary, and do some experimentation with both.

Craig

> On Aug 3, 2022, at 9:36 AM, Sean Cole via use-livecode 
>  wrote:
> 
> Hi all,
> I've been thinking about the command 'dispatch'. Is there any
> advantage/disadvantage in using it over just calling your handler?
> Thanks
> Sean
> ___
> 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: long id trap for the unwary

2022-06-29 Thread Craig Newman via use-livecode
Neville.

I know this thread has been broken into parts, but what exactly is your 
question?

I made two stacks, The first with a button on it, and this in its script:

on mouseup

put the long id of field 1 of card 1 of stack "untitled 3" into fieldID

put the long ID of the owner of fieldID into groupID

put the owner of groupID into ownerID

end mouseup


The second stack (untitled 3) has a field  that has been grouped.

You get, in the SE, three pieces of information in those three variables. What 
does this do for you?

Craig

> On Jun 28, 2022, at 9:38 PM, Neville Smythe via use-livecode 
>  wrote:
> 
> No crashes or errors, I just didn’t get back the data I expected.
> 
> Does it really have anything to do with message paths?
> 
> I just expected
> 
>the long id of field1 of card 1
> 
> to do what it says, that is, to return a specifier to (the instance of) field 
> 1 on card 1. At the time I was iterating through all substacks and controls 
> in a stack and wanted a specifier which would work for substacks as well as 
> objects so the long id was the natural choice.
> 
> I understand why the long id of a group has to contain a reference to the  
> current card or the first card containing the group, but in this case I am 
> actually specifying the card reference I want, so it *could* return what I 
> expected, it just doesn’t. Tough cheese. (Oops, I mentioned c…..)
> 
> 
> Neville
> 
> 
> 
> 
> ___
> 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: long id trap for the unwary

2022-06-28 Thread Craig Newman via use-livecode
Klaus.

You are correct; I missed that the “long iD” was used, and that expression 
includes the work “field”. LC can then use that as a valid reference.

Craig

> On Jun 28, 2022, at 5:38 PM, Bob Sneidar via use-livecode 
>  wrote:
> 
> You can find the definition of both send and dispatch in the dictionary. 
> 
> So an example of Dispatch being called from a card of a substack would be: 
> 
> put the long id of me into tParentCard
> dispatch extract to card "Main" of stack "Forms Generator" with tRecordA, 
> tParentCard, tExclusions
> 
> 
> -- if however extract is in the message path for everything, such as in a 
> library or back/front script, dispatch is not needed
> -- but there's nothing wrong with using it
> extract tRecordA, tParentCard, tExclusions
> 
> 
> -- aRecordData is an array you want to populate with the field contents of 
> pParentCard
> -- pParentCard is the long id of the target card containing field, button and 
> menu objects
> -- pExclusions is a comma delimited list of object names you want to pass over
> 
> on extract @aRecordData, pParentCard, pExclusions
>   -- store object values in aRecordData
>   put the text of field "fldCustomerName" of pParentCard into aRecordData 
> ["customername"]
>   put the hilited of button "btnActive" of pParentCard into aRecordData 
> ["active"]
>   put the label of button "mnuCategories" of pParentCard into aRecordData 
> ["category"]
>   ...
>   -- no need to return anything in this example because aRecordData is passed 
> by reference
> end extract
> 
> Bob S
> 
> 
>> On Jun 28, 2022, at 12:49 , Peter Bogdanoff via use-livecode 
>>  wrote:
>> 
>> Hi Bob,
>> 
>> I need more detail how to word the command. No need to send in time, just 
>> how to call that function on a card not in the message path. Thanks!
>> 
> 
> 
> ___
> 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: long id trap for the unwary

2022-06-28 Thread Craig Newman via use-livecode
I just glanced at this. Down at the very beginning, I noticed something odd. 
One cannot do anything with “the text" of a variable; that would not throw an 
error, but would always be empty, no?

Craig

> On Jun 28, 2022, at 3:49 PM, Peter Bogdanoff via use-livecode 
>  wrote:
> 
> Hi Bob,
> 
> I need more detail how to word the command. No need to send in time, just how 
> to call that function on a card not in the message path. Thanks!
> 
>> On Jun 28, 2022, at 12:12 PM, Bob Sneidar via use-livecode 
>>  wrote:
>> 
>> Send IF you need in time. Stupid spell correct. It cannot be me mistyping. 
>> 
>> Sent from my iPhone
>> 
>>> On Jun 28, 2022, at 12:08, Bob Sneidar  wrote:
>>> 
>>> Send in you need in time. Dispatch if you are not sure the handler exists 
>>> in the target. Dispatch will not throw an error if there is no handler. 
>>> 
>>> Sent from my iPhone
>>> 
 On Jun 28, 2022, at 11:05, Peter Bogdanoff via use-livecode 
  wrote:
 
 Bob,
 
 This makes sense.
 
 I’m unclear as to how I would structure the command to call a function in 
 a card that’s not in the message path. 
 
 send … ?
 
 Peter Bogdanoff
 
>> On Jun 28, 2022, at 8:34 AM, Bob Sneidar via use-livecode 
>>  wrote:
> 
> Your point brings up something that was discussed before on this list. 
> It's going to be cleaner in the long run to "compartmentalize" your 
> handlers so that a handler is not trying access objects that are not in 
> the message path, or belong to an object in the message path. A handler 
> should not if at all possible "reach out and touch" something on another 
> card. 
> 
> If you need to get or set something on a card other than the one in the 
> message path of the current handler, it's better to have a command or 
> function in the script of the target card. That way you can say: 
> 
> function returnTheText pFieldName
> return the text of field pFieldName of me
> end returnTheText
> 
> If you DO need to have handlers working in a broader context, then when 
> calling the handler get the long id of the target card first and then 
> pass that in a parameter to the handler. 
> 
> For instance I have a handler called Extract which retrieves to values 
> for every object on a card with certain prefixes in their name like fld 
> or btn or menu. I pass the long id of the card they are on so that there 
> is never any confusion as in: 
> 
> function extract tParentCard
> return the text of field 1 of tParentCard
> end extract
> 
> Bob S
> 
> 
>>> On Jun 27, 2022, at 20:27 , Neville Smythe via use-livecode 
>>>  wrote:
>> 
>> If I write
>> 
>> put the long id of field 1 of card 1 into tObject; put the text of 
>> tObject
>> 
>> I get the text of field 1 of card 1, right ? Not necessarily.
>> 
>> If field 1 of card 1 is in a shared group, then what I get is the text 
>> of field id something of card id whatever, where whatever is the id of 
>> the current card or maybe the first card containing the group. 
>> 
>> This is not actually a bug when you read the docs carefully but it 
>> certainly is a trap and in my case a major bug generator. It means this 
>> seemingly obvious way of obtaining the long id of an object (rather, in 
>> this case an instance of an object)  cannot be used to uniquely identify 
>> it when getting its properties.
>> 
>> The workaround is to replace card id (whatever) with card id (the id of 
>> card 1) in tObject;  the properties of tObject returned are then the 
>> properties of the expected instance of the object.
>> 
>> Sigh, a new version of nsScriptDatabase coming up.
>> 
>> Neville
>> 
>> 
>> 
>> 
>> 
>> ___
>> 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:

Re: How to color a "cell"?

2022-06-23 Thread Craig Newman via use-livecode
Richard.

I think this was discussed on the forum a while back. I do not believe you can 
do what you want without another control overlying the “rect” of the “cell”.

Craig

> On Jun 22, 2022, at 8:11 PM, Richard Gaskin via use-livecode 
>  wrote:
> 
> I need to set the backgroundColor of a complete "cell", where "cell" is
> defined as the portion of a row in a table field between tabs when the
> vGrid is set.
> 
> I had hoped the paragraph-level formatting options introduced in v5.x would 
> help, but alas as far as I can tell I can only set the backgroundColor of a 
> run of text, not the full cell.
> 
> Anyone know a way to do this WITH FIELD/TEXT PROPERTIES ONLY?
> 
> (Pardon the all-caps, but I can come up with many workarounds that include 
> other objects, but I really need something here that works with one field 
> object and nothing else.)
> 
> -- 
> Richard Gaskin
> Fourth World Systems
> Software Design and Development for the Desktop, Mobile, and the Web
> 
> ambassa...@fourthworld.comhttp://www.FourthWorld.com
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


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


Re: my keyUp message has disappeared

2022-06-21 Thread Craig Newman via use-livecode
I neglected to write the modified “keyUp” handler I am now using when I posted. 
it should read:

> on keyUp x
>   answer x & random(99)
> end keyUp

in order to get that “x56” I mentioned.

Craig


> On Jun 21, 2022, at 2:16 PM, Craig Newman via use-livecode 
>  wrote:
> 
> This is summarized from a couple of threads in the forum:
> -
> 
> The "keyUp"message has disappeared.
> 
> This happened to me once before, several weeks ago, and trashing the prefs 
> file fixed it. But now even that does not cut it. 
> 
> So a new stack in a new session has this in its card script:
> 
> on keyUp x
>   answer x
> end keyUp
> 
> Nothing. The message does not appear in the message watcher, though all its 
> siblings, "keyDown", rawKeyDown" and "rawKeyUp”, all do.
> 
> —
> 
> Just trashed the prefs file, which worked last time.Nope
> Just tried with another version of LC (9.6.6).  Nope
> Just restarted.  Nope.
> 
> I have never seen anything quite like this, the complete loss of a message.
> 
> I went back to v8.1 and tried the same handler in the card script. Worked! 
> Then tried 8.6. Did not work. Went BACK to 8.1. No longer worked.
> 
> Something in my setup is doing this. I am not sure it is LC per se, though I 
> cannot imagine what that could mean.
> 
> ———
> 
> This works from msg:
> 
> send "keyUp" && "x" to this cd
> 
> I can set a breakpoint and trap the message, or not. I get something like 
> "x56”.
> 
> ——
> 
> Bernd mentioned that he noticed this issue if his message box was visible. He 
> thought maybe that stack somehow grabbed focus. I mention this only because 
> something is surely going on somewhere.
> 
> Craig
> 
> ___
> 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


my keyUp message has disappeared

2022-06-21 Thread Craig Newman via use-livecode
This is summarized from a couple of threads in the forum:
-

The "keyUp"message has disappeared.

This happened to me once before, several weeks ago, and trashing the prefs file 
fixed it. But now even that does not cut it. 

So a new stack in a new session has this in its card script:

on keyUp x
   answer x
end keyUp

Nothing. The message does not appear in the message watcher, though all its 
siblings, "keyDown", rawKeyDown" and "rawKeyUp”, all do.

—

Just trashed the prefs file, which worked last time.Nope
Just tried with another version of LC (9.6.6).  Nope
Just restarted.  Nope.

I have never seen anything quite like this, the complete loss of a message.

I went back to v8.1 and tried the same handler in the card script. Worked! Then 
tried 8.6. Did not work. Went BACK to 8.1. No longer worked.

Something in my setup is doing this. I am not sure it is LC per se, though I 
cannot imagine what that could mean.

———

This works from msg:

send "keyUp" && "x" to this cd

I can set a breakpoint and trap the message, or not. I get something like "x56”.

——

Bernd mentioned that he noticed this issue if his message box was visible. He 
thought maybe that stack somehow grabbed focus. I mention this only because 
something is surely going on somewhere.

Craig

___
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: Pointlist to Bezier?

2022-06-14 Thread Craig Newman via use-livecode
There is a similar thread on the forum:

https://forums.livecode.com/viewtopic.php?f=8=34550 


Craig

> On Jun 14, 2022, at 8:54 AM, David Bovill via use-livecode 
>  wrote:
> 
> I found some well documented python code:
> 
> • https://github.com/volkerp/fitCurves/blob/master/fitCurves.py
> 
> And some Javascript code:
> 
> • https://github.com/soswow/fit-curve/blob/master/src/fit-curve.js
> 
> The javascript code could be called from Livecode. To see the demo of how 
> this would work in the browser:
> 
> • http://soswow.github.io/fit-curve/demo/
> • https://codepen.io/Sphin/pen/jrLxvQ
> 
> Would seem to be a useful library to have available in native LC?
> 
> Schedule a call with me
> On 14 Jun 2022, 12:30 +0100, David Bovill , wrote:
>> Searching around for a function in LC. It should take the points of a 
>> graphic and return a smoothed the points of a smoothed line. I’ve found lots 
>> of bezier style experiments but no “curve fitting” code. Anyone have a 
>> function?
>> 
>> Schedule a call with me
>> On 6 Dec 2015, 12:10 +, Michael Kristensen 
>> , wrote:
>>> Pointlist to Bezier
>>> 
>>> Hi there
>>> 
>>> I wonder if any have code to take a point-list and turn it into a 
>>> smooth-lined bezier.
>>> 
>>> There are explanations around the net for C-code but it is very hard to 
>>> understand.
>>> 
>>> (one here said to be good but misses the graphics:)
>>> http://www.benknowscode.com/2012/09/path-interpolation-using-cubic-bezier_9742.html
>>> 
>>> What could this code be used for.
>>> 
>>> — Tracing an image
>>> 
>>> — Smoothing the lines drawn by a user
>>> 
>>> plus a lot more Im sure
>>> 
>>> Thanks
>>> Michael
>>> ___
>>> 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: Would anyone miss convertOctals?

2022-06-09 Thread Craig Newman via use-livecode
Mark.

Gong the other way, is your task made much simpler by losing “converOctals”? I 
assume so, or the issue would never have come up. Are there other similar 
language elements that also are on the block?

Craig

> On Jun 9, 2022, at 1:03 PM, Ben Rubinstein via use-livecode 
>  wrote:
> 
> 1) No (or didn't until I looked just now)
> 2) N/A
> 3) N/A
> 4) N/A
> 
> 
> On 09/06/2022 13:44, Mark Waddingham via use-livecode wrote:
>> So I'm currently sitting here about to embark on fixing 
>>  (which is the final 
>> thing to sort out before being able to merge my constant expression patch) 
>> and I was reminded of 'convertOctals'.
>> Now, generally, I am somewhat averse to actually removing any language 
>> feature (even those we have deprecated, unless we absolutely have to!) - 
>> however, I would really like to make convertOctals have no effect at all in 
>> 10.0+ as it adds a disproportionate amount of complexity compared to (what I 
>> think, at least) its utility is (particularly in the context of things 
>> 'coming next' like the script compiler).
>> So three questions:
>>   1) Do you know what convertOctals is, and what it does?
>>   2) If you do, have you ever actually used it in any scripts which are 
>> actually still in use?
>>   3) If you do use it in any scripts which are still in use, would you be 
>> willing to change them to not use it?
>>   4) If you do use/have used it, had you ever noticed that it has been 
>> slightly broken for years?
>> Now, its always better to offer a carrot when there is a stick (or in this 
>> case, an axe) being wielded and the carrot in this case would be to expand 
>> the numeric literal syntax to add both explicit octal and binary number 
>> literals alongside hexadecimal:
>> 0xabcdef - hex literal
>> 0o777 - octal literal
>> 0b101110101
>> The key difference between 0o777 and using 0777 (with convertOctals true) is 
>> that the former is not ambiguous at parse time, it doesn't require a runtime 
>> property set to true in order for the engine to convert the string to a 
>> number correctly.
>> Please let me know your thoughts :)
>> Warmest Regards,
>> Mark.
>> P.S. In the scheme of 'breaking changes' - we've already made a number of 
>> them for 10 already, and my gut tells me removing convertOctals is likely to 
>> cause less consternation than those we already have - but I could be wrong!
> 
> ___
> 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: Would anyone miss convertOctals?

2022-06-09 Thread Craig Newman via use-livecode
I have never used an octal.

But it well might break legacy handlers of others, however simple it is to 
write a custom function to replicate.

Craig

> On Jun 9, 2022, at 10:37 AM, Paul Dupuis via use-livecode 
>  wrote:
> 
> Never use octal. pretty much any entries theses days are decimal or 
> hexadecimal. Even binary (bit shifting or masks) is exceedingly rare
> 
> 
> On 6/9/2022 8:44 AM, Mark Waddingham via use-livecode wrote:
>> So I'm currently sitting here about to embark on fixing 
>>  (which is the final 
>> thing to sort out before being able to merge my constant expression patch) 
>> and I was reminded of 'convertOctals'.
>> 
>> Now, generally, I am somewhat averse to actually removing any language 
>> feature (even those we have deprecated, unless we absolutely have to!) - 
>> however, I would really like to make convertOctals have no effect at all in 
>> 10.0+ as it adds a disproportionate amount of complexity compared to (what I 
>> think, at least) its utility is (particularly in the context of things 
>> 'coming next' like the script compiler).
>> 
>> So three questions:
>> 
>>   1) Do you know what convertOctals is, and what it does?
>> 
>>   2) If you do, have you ever actually used it in any scripts which are 
>> actually still in use?
>> 
>>   3) If you do use it in any scripts which are still in use, would you be 
>> willing to change them to not use it?
>> 
>>   4) If you do use/have used it, had you ever noticed that it has been 
>> slightly broken for years?
>> 
>> Now, its always better to offer a carrot when there is a stick (or in this 
>> case, an axe) being wielded and the carrot in this case would be to expand 
>> the numeric literal syntax to add both explicit octal and binary number 
>> literals alongside hexadecimal:
>> 
>> 0xabcdef - hex literal
>> 0o777 - octal literal
>> 0b101110101
>> 
>> The key difference between 0o777 and using 0777 (with convertOctals true) is 
>> that the former is not ambiguous at parse time, it doesn't require a runtime 
>> property set to true in order for the engine to convert the string to a 
>> number correctly.
>> 
>> Please let me know your thoughts :)
>> 
>> Warmest Regards,
>> 
>> Mark.
>> 
>> P.S. In the scheme of 'breaking changes' - we've already made a number of 
>> them for 10 already, and my gut tells me removing convertOctals is likely to 
>> cause less consternation than those we already have - but I could be wrong!
>> 
> 
> 
> ___
> 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: use-livecode Digest, Vol 225, Issue 4

2022-06-07 Thread Craig Newman via use-livecode
Though it is true that “numToChar” and “charToNum” are deprecated, they still 
live and work the same as always.

Old habits die hard, andI still use them.  One day I will move on., but the 
original issue has not changed.

Craig

> On Jun 7, 2022, at 9:01 AM, Jean-Jacques Wagner via use-livecode 
>  wrote:
> 
> Hi
> Sorry, I ment  the number of words.
> 
> Since numtochar has been depreciated with version 7.0, the closest would be 
> now  numtonativechar. 
> However with numtonativechar () for the words boundaries the following chars 
> number “09,10,11,12,13,32,202” are used.
> 
> Therefore a feature has been depreciated with introduction of version 7.0, it 
> is a long time ago. Originally it was not so,
> eg. (“numtochar(32)(202)(32)) was a word, which was not 
> visible on the screen, but visible for
> the script. Now it makes very little sense to use the special char 202 
> instead of numtochar(32).
> 
> Sincerely,
> 
> Jean-Jacques Wagner.
> 
> 
>> Hypercard and livecode 6.7:  the number of chars (numtochar(32)&
>> Hypercard and livecode 6.7:  the number of chars (numtochar(32)&
> 
> 
>> Hypercard and livecode 6.7:  the number of chars (numtochar(32)&
>> numtochar(202)(32)& numtochar(202)(32)) = 2
> 
> 
>> Hypercard and livecode 6.7:  the number of chars (numtochar(32)&
>> numtochar(202)(32)& numtochar(202)(32)) = 2
>> livecode 9.67  :   the number of chars (numtonativer(32)&
>> numtochar(202)(32)& numtochar(202)(32)) = 0
> 
> 
>> Version 6.7word boudary are char number 09,10,11,12,13,32
>> version 9.67  word boudary are char number 09,10,11,12,13,32,202
> 
> 
> 
> 
>> Am 04.06.2022 um 18:00 schrieb use-livecode-requ...@lists.runrev.com:
>> 
>> Jean-Jacques
>> 
>> In 9.6.8
>> 
>> the number of chars of (numtochar(32)& numtochar(202)(32)& 
>> numtochar(202)(32)) = 5
>> 
>> As it should be.
>> 
>> Did you mean the number of words?
>> 
>> But then 
>> 
>> the number of words of (numtochar(32)& numtochar(202)(32)& 
>> numtochar(202)(32)) = 0 (in 9.6.8)
>> 
>> As it should be.
>> 
>> Char 202 is unicode for an invisible char marking a paragraph end I believe, 
>> I think rarely used until recently. It has been turning up in web sites 
>> causing difficulty for old parsers.
>> 
>> 
>> Neville
>> 
>>> 
>>> Hypercard and livecode 6.7:  the number of chars (numtochar(32)& 
>>> numtochar(202)(32)& numtochar(202)(32)) = 2
>>> livecode 9.67  :   the number of chars (numtochar(32)& 
>>> numtochar(202)(32)& numtochar(202)(32)) = 0
>>> 
>>> Is it a change or a bug considering now numtochar(202) as word boundary, as 
>>> it is with numtochar(32)
>>> 
>> 
> 
> ___
> 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: Limit on the number of parameters?

2022-06-07 Thread Craig Newman via use-livecode
I have never had any issues with the number of parameters that can be passed to 
a custom handler. Nor any issue with “seeing” them all in the debugger. I would 
say that the largest number of params I ever sent was about 15.

Craig



> On Jun 6, 2022, at 4:08 PM, Bob Sneidar via use-livecode 
>  wrote:
> 
> Thanks Phil. I checked in the debugger both the call to the function where 
> the 5th value was passed as a literal, and in the function itself where the 
> parameter was no defined. It may be something with the SE debugger I'll look 
> into it. 
> 
> Bob S
> 
> 
>> On Jun 6, 2022, at 13:00 , Phil Davis via use-livecode 
>>  wrote:
>> 
>> In LC 9.6.7, this works in a button script:
>> 
>>  on mouseUp
>>   tryThis "1", "2", "3", "4", "5", "66", "777", "", "9", "10"
>>  end mouseUp
>> 
>> 
>>  command tryThis
>>   put the params -- the handler name and all 10 params are there
>>  end tryThis
>> 
>> 
>> I often stuff lots of data items into an array and use the array as a param. 
>> For me, that makes life easier. YMMV.
>> 
>> Phil Davis
>> 
>> 
>> On 6/6/22 11:45 AM, Bob Sneidar via use-livecode wrote:
>>> Is the number of parameters passed to a custom handler limited to 4? I do 
>>> not seem to be getting a 5th parameter to pass to a function I use.
>>> 
>>> Bob S
>>> 
>>> 
>>> ___
>>> 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
>>> 
>> 
>> -- 
>> Phil Davis
>> (503) 307-4363
>> ___
>> 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: char as word boundary

2022-06-06 Thread Craig Newman via use-livecode
 Apart from omitting the “of” in any of your posted lines of code, I am 
confused..
The number of chars of any string of concatenated “numToChar” functions will be 
the number of those functions, that is, 5, since each returns a single 
character. How did you get any of the other results?

Craig

> On Jun 3, 2022, at 6:49 PM, Neville Smythe via use-livecode 
>  wrote:
> 
>> the number of chars (numtochar(32)& numtochar(202)(32)& 
>> numtochar(202)(32))

___
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: Divide Large Data Blob?

2022-05-16 Thread Craig Newman via use-livecode
Hi.

Can you get the number of lines of the whole blob, if lines are pertinent, 
divide that number by 3, and search from there? Another words, if you had 1000 
lines, divide by 3 and search from line 333 to 666.

Craig

> On May 16, 2022, at 1:46 PM, Rick Harrison via use-livecode 
>  wrote:
> 
> I have a large chunk of data that I want to
> search as quickly as possible.  
> 
> Unfortunately the part I want to search is the 
> middle third of the data.  The other thirds at 
> the beginning and at the end are just junk and 
> slow down my search so I want to get rid of them.
> 
> I don’t want to search line by line as that
> takes way too long.
> 
> There’s no unique character dividing any
> of these data regions.
> 
> What’s the best way to do this?
> 
> Thanks in advance!
> 
> Rick
> 
> 
> 
> ___
> 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: Decrypting (and encrypting) Large files

2022-05-09 Thread Craig Newman via use-livecode
Ah, I see.

I did not appreciate that the dataset could be in the many gigabytes.

Craig

> On May 9, 2022, at 12:42 PM, Tom Glod via use-livecode 
>  wrote:
> 
> there is no way to decrypt something that does not fit in memory. with 64
> bit builds the limit is whatever the motherboard  supports.   on 32 bit
> builds the limit is whatever the os will allow 1 process to have,
> but then u need memory to store the decrypted data too.
> you can use a command line program to outsource that work and memory
> management.
> 
> On Mon, May 9, 2022 at 9:44 AM Craig Newman via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> 
>> I believe that there is no upper limit to the size of a variable in LC. So
>> I am with Mike here. What makes you nervous about dealing with a large
>> dataset within LC itself?
>> 
>> Craig
>> 
>>> On May 9, 2022, at 8:49 AM, Mike Kerner via use-livecode <
>> use-livecode@lists.runrev.com> wrote:
>>> 
>>> have you tried ti? i have not run into a situation where a variable was
>> too
>>> big.
>>> 
>>> On Sun, May 8, 2022 at 6:46 PM Mark Clark via use-livecode <
>>> use-livecode@lists.runrev.com> wrote:
>>> 
>>>> Wondering if anyone has used LiveCode for encrypting-decrypting large
>>>> files? The docs typically have nice examples for files that can fit
>> into a
>>>> variable, but what are folks doing for big files that are larger than
>> what
>>>> you’d want in a variable? I’m thinking about using LC for decrypting zip
>>>> compressed log files that can be multiple gigabytes in size. I’d like to
>>>> use just LC vs. resorting to shell if possible.
>>>> 
>>>> Likely need a hash value to compare the decrypted output against the
>>>> original as well. I’m thinking some variation along the lines of open
>> file
>>>> x for read, reading some manageable chunk into memory, decrypting a
>>>> portion, writing that to disk and repeat. But that seems too simple.
>> Think
>>>> we need AES 256. Any shared experience much appreciated.
>>>> 
>>>> Thanks all,
>>>> 
>>>> Mark
>>>> ___
>>>> use-livecode mailing list
>>>> use-livecode@lists.runrev.com
>>>> Please visit this url to subscribe, unsubscribe and manage your
>>>> subscription preferences:
>>>> http://lists.runrev.com/mailman/listinfo/use-livecode
>>>> 
>>> 
>>> 
>>> --
>>> On the first day, God created the heavens and the Earth
>>> On the second day, God created the oceans.
>>> On the third day, God put the animals on hold for a few hours,
>>>  and did a little diving.
>>> And God said, "This is good."
>>> ___
>>> use-livecode mailing list
>>> use-livecode@lists.runrev.com
>>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
>>> http://lists.runrev.com/mailman/listinfo/use-livecode
>> 
>> 
>> ___
>> 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: Re Pulldownmenu button bug on Windows

2022-05-09 Thread Craig Newman via use-livecode
Richard.

So glad to have you in this world.

Craig

> On May 7, 2022, at 5:35 PM, Bob Sneidar via use-livecode 
>  wrote:
> 
> Well put. I wonder what the real world effect of the order of messages is, 
> and whether or not it could be compensated for by send in time?
> 
> Sent from my iPhone
> 
>> On May 7, 2022, at 13:44, Richard Gaskin via use-livecode 
>>  wrote:
>> 
>> It's definitely an inconsistency, but the bug's status as requiring "EXPERT 
>> REVIEW" prompts us to consider why these differences exist, and which, if 
>> any, should be considered "wrong" or "right".  It may not be as simple as it 
>> seems at first glance.
>> 
>> 
>> Background:
>> --
>> MetaCard (the engine we now call LiveCode) was born on Unix, later ported to 
>> Windows, Linux, and then MacOS.
>> 
>> On all platforms menus are implemented as selector buttons, buttons which 
>> provide the appearance and behavior of OS-provided menu objects.
>> 
>> And until the port to MacOS, all platforms behaved consistently.
>> 
>> So why the Mac change?
>> 
>> Mac is unique among popular GUI OSes in its use of a global menu bar, 
>> attached to the top of the display; other OSes place the menu bar attached 
>> to the top of the window.
>> 
>> Internally, LC menus are implemented as temporary dynamically-instantiated 
>> nameless stacks, which may seem counterintuitive until you realize that a 
>> menu is in essence a highly specialized form of window, a viewport 
>> independent of other windows with its own buffer, contents, and like all 
>> windows needs to use a common compositor for rendering them all together. 
>> (Indeed you can even use stacks as menus explicitly when you need a 
>> non-standard look, like a graphical picker, but that's another topic).
>> 
>> So the engine's method of using a subclass of the stack object for rendering 
>> menus worked well and consistently for a great many years - until the port 
>> to MacOS.
>> 
>> The Mac global menubar required a deep rethink on how menus are handled, not 
>> only in terms of detaching them from the window but also in terms of the 
>> nuances of display and interaction.
>> 
>> So Dr Raney special-cased menus on MacOS, so the engine uses OS routines to 
>> render those, fed by the menu button properties for things like the menu 
>> name as parameters to those OS routines. On every other platform you're 
>> interacting with a LiveCode object, but on Mac you're interacting with a 
>> system object into which the engine has inserted some hooks to tie it in 
>> with your scripting so you can at least know when an item has been selected.
>> 
>> This rewiring of properties and messages is no small feat, and has pervasive 
>> effects.  So from time to time you'll find Mac-specific things needed to 
>> conform to that platform like adding an "About" item to a menu that doesn't 
>> exist in your stack (the Mac's "Application" menu belongs to the OS).
>> 
>> It's not surprising that messages related to menu objects also have some 
>> inconsistencies along with everything else.
>> 
>> If we consider that on all other platforms the menu object we're interacting 
>> with is a button, and the menus that appear are a stack, the messaging you 
>> see with Windows and Linux is consistent with other button object messaging: 
>> once the mouse leaves the control the mouseLeave message is sent.
>> 
>> On Mac we have an exception to LC's normal button messaging because we're 
>> not interacting with an LC button at all, but with a system object, into 
>> which the engine devs have grafted just enough messaging to trigger actions 
>> from scripts.
>> 
>> I have no opinion on qualitative labels like "right" or "wrong" on this; 
>> that seems a matter of personal familiarity and taste. It may even be 
>> somewhat philosophical: is a menu a single thing that expands, or two things 
>> (menu and items) where one triggers the appearance of the other?
>> 
>> All I can do is help describe the under-the-hood parts to help makes sense 
>> of how the difference came about.
>> 
>> 
>> 
>> The Here-And-Now:
>> 
>> Whether or not we prefer it, the menu architecture is what it is, at least 
>> at the moment. Changing the behavior on all other platforms to be like Mac, 
>> or Mac to be like all other platforms, would be a scope of work that I'd 
>> guess the team would not be in a position to make a priority any time soon, 
>> even if they felt strongly about this one way or another.
>> 
>> They have a lot on their plates, and for all the questions we see regarding 
>> Mac-specific menu differences (like the auto-migration of the "About", 
>> "Help" and "Preferences" items to system menus separate from the menu 
>> objects where we're asked to put them), I can't recall seeing a message here 
>> before about mouseLeave.
>> 
>> I'm not saying it isn't important. It might well be. But observably this 
>> affects few; AFAIK this is the first such request in the 23 years I've been 
>> using this 

Re: Decrypting (and encrypting) Large files

2022-05-09 Thread Craig Newman via use-livecode
I believe that there is no upper limit to the size of a variable in LC. So I am 
with Mike here. What makes you nervous about dealing with a large dataset 
within LC itself?

Craig

> On May 9, 2022, at 8:49 AM, Mike Kerner via use-livecode 
>  wrote:
> 
> have you tried ti? i have not run into a situation where a variable was too
> big.
> 
> On Sun, May 8, 2022 at 6:46 PM Mark Clark via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> 
>> Wondering if anyone has used LiveCode for encrypting-decrypting large
>> files? The docs typically have nice examples for files that can fit into a
>> variable, but what are folks doing for big files that are larger than what
>> you’d want in a variable? I’m thinking about using LC for decrypting zip
>> compressed log files that can be multiple gigabytes in size. I’d like to
>> use just LC vs. resorting to shell if possible.
>> 
>> Likely need a hash value to compare the decrypted output against the
>> original as well. I’m thinking some variation along the lines of open file
>> x for read, reading some manageable chunk into memory, decrypting a
>> portion, writing that to disk and repeat. But that seems too simple. Think
>> we need AES 256. Any shared experience much appreciated.
>> 
>> Thanks all,
>> 
>> Mark
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
>> 
> 
> 
> -- 
> On the first day, God created the heavens and the Earth
> On the second day, God created the oceans.
> On the third day, God put the animals on hold for a few hours,
>   and did a little diving.
> And God said, "This is good."
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


___
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: Pulldownmenu button bug on Windows

2022-04-29 Thread Craig Newman via use-livecode
Hi.

I will say again that the format of the forum is so much easier to work with.

I made a pulldown and two fields, with these two handlers in the button script:

on menuPick pItemName

put pItemname into fld 1

end menuPick


on mouseleave

put random(999) into fld 2

end mouseleave


On my Mac ( I will never voluntarily use Windows) the menuItem is always nicely 
placed into fld 1 after being selected. A random number appears in fld 2 nicely 
as well.

The mouseLeave handler fires immediately if I just enter the button rect and 
leave it without ever clicking the mouse to invoke a menu. Makes sense.

What I found interesting is that when the cursor is below the actual button, 
"within" the pulldown menu space, that handler fires after an ordinary menu 
selection,. It is as if the mouse has “left” the button rect by virtue of the 
menu “space” disappearing after a selection is made. Either that or LC “sees” 
the entirety of the button and the menu space as its rect.

Whatever. But that is how the Mac works. I apologize, but I see that I have 
been of no help to you at all.

Craig

> On Apr 28, 2022, at 11:25 PM, Neville Smythe via use-livecode 
>  wrote:
> 
> I have a pulldown menu button which has a menupick script and also a 
> mouseLeave script.
> 
> On a Mac, when a user brings up the menu and drags the mouse down  to select 
> a menu item (leaving the button rect but within the pulldown menu), the 
> menupick handler is invoked, and then the mouseleave handler is called. This 
> is what I expected.
> 
> However on Windows, the mouseleave script is called immediately the mouse 
> leaves the button while the user is still in the process of making the 
> selection, and then menupick is called if the user actually makes the 
> selection.
> 
> Which means standalones behave quite differently (in my app, the menupick did 
> something to a selection in a field, and mouseleave did something else to the 
> selection: the order is thus critical).
> 
> They can’t both be right, so certainly one is a bug. The Mac order is IMO 
> correct since the pulldown menu has been started by the user so the app 
> should be in a modal state until the menu selection is resolved.
> 
> Neville
> 
> 
> ___
> 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: Curved text possible?

2022-04-27 Thread Craig Newman via use-livecode
The polyLine character substitution will be a simple. Creation will be a bear, 
but only once.

If you had “Hello World” and wanted to “curve” it, you would simply pull the 
appropriate curved chars, “H”,, “e’, “l, etc. and string them together.

Uh oh, what about kerning? I hope this is a monospaced curved font you are 
thinking about.

Craig

> On Apr 27, 2022, at 11:52 AM, William de Smet via use-livecode 
>  wrote:
> 
> Hi Paul,
> 
> It will be an iOS app.
> 
> 
> groeten,
> 
> William
> 
> 
> 
> 
> Op wo 27 apr. 2022 om 17:45 schreef Paul Dupuis via use-livecode <
> use-livecode@lists.runrev.com>:
> 
>> There is not a native way to do this in LiveCode.
>> 
>> An approach might be to use the shell() function (see Dictionary) to
>> pass the text to some external graphics utility that renders and image
>> of it curved and then import the image back into Livecode. There may be
>> other work-arounds.
>> 
>> On 4/27/2022 11:12 AM, William de Smet via use-livecode wrote:
>>> Hi There,
>>> 
>>> I am in the need for curved text.
>>> User input via a text field need to have a copied curved text output.
>>> Is this even possible in Livecode?
>>> I was thinking of text to the points of a path? Something like that?
>>> 
>>> 
>>> Greetings William
>>> ___
>>> 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: Curved text possible?

2022-04-27 Thread Craig Newman via use-livecode
How large is this curved text?

You could certainly create an entire alphabet with polyLines, and insert them 
as needed to replace a body of text. But if you need 12 point size, those 
graphics are going to be, er, difficult to do nicely.

Craig

> On Apr 27, 2022, at 11:12 AM, William de Smet via use-livecode 
>  wrote:
> 
> Hi There,
> 
> I am in the need for curved text.
> User input via a text field need to have a copied curved text output.
> Is this even possible in Livecode?
> I was thinking of text to the points of a path? Something like that?
> 
> 
> Greetings William
> ___
> 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


Single Window LC IDE?

2022-04-26 Thread Craig Newman via use-livecode


Saw this on Kevin's keynote.

Some parts of having such a thing, as opposed to a sea of separate palettes, 
are attractive indeed.

But one aspect would prevent me from EVER upgrading to v10, and that is if the 
SE also had to be incorporated into that single window. Anyone know if this is 
in fact planned?

Craig
___
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: optionKeyDown message broken

2022-04-21 Thread Craig Newman via use-livecode
Have not played with your handler, but why not just:

on rawKeyDown tKey

if the optionkey is down then answer numToChar(tkey)

end rawKeyDown


Craig

> On Apr 21, 2022, at 11:55 AM, Paul Dupuis via use-livecode 
>  wrote:
> 
> on optionKeyDown pKeyName
>   if platform() = "MacOS" then
> put numToChar(charToNum(pKeyName)-128) into tKey1 -- original sample from 
> Dictionary
> put numToCodePoint(codepointToNum(pKeyName)-128) into tKey2 -- trying 
> using non-deprecated functions
> answer pKeyName,tKey1,tKey2
>   else -- windows
> answer pKeyName
>   end if
> end optionKeyDown

___
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: Flash Talks - 3 slots remaining

2022-04-06 Thread Craig Newman via use-livecode
So is this a video that I make beforehand and upload somewhere, or is it 
usually meant to be a live show?

Craig

> On Apr 5, 2022, at 8:28 PM, Ralph DiMola via use-livecode 
>  wrote:
> 
> Me too.
> 
> Ralph DiMola
> IT Director
> Evergreen Information Services
> rdim...@evergreeninfo.net 
> 
> 
> All right - now I'm hooked.
> Looking forward to you talking about the LC interface to the real world.
> 
> -- 
>  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 
> 
___
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: Flash Talks - 3 slots remaining

2022-04-05 Thread Craig Newman via use-livecode
I suppose I could set up a Zoom session, and get some sucker, I mean, helper to 
video me.

But much of the underlying power behind each of my machines is based on a small 
I/O hardware gadget that has no particular relevance to LC per se, apart from a 
software framework that supports it.

The front end is a LC stack, running in the IDE, a control panel that reads and 
writes to the gadget. The gadget reads the state of things like switches and 
controls things like motors. Perhaps this might suggest to some that a hardware 
project could be assembled using Raspberry Pi or Arduino or even a PIC, since 
my particular hardware gadget is no longer supported.

Anyway, for a minute or two it probably will look pretty cool, and the machine 
I have in mind is nothing if not noisy. 

Craig

> On Apr 5, 2022, at 5:05 PM, Tom Glod via use-livecode 
>  wrote:
> 
> Cool I'd watch your talk Craig.
> 
> On Tue, Apr 5, 2022 at 4:37 PM Mark Wieder via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> 
>> On 4/5/22 10:36, Craig Newman via use-livecode wrote:
>> 
>>> 
>>> But I do use LC to control three very different machines in our shop.
>> Would it be of any interest to anyone to see one of these in operation?
>> 
>> Add me to the list of interested folks.
>> 
>> --
>>  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


___
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: Flash Talks - 3 slots remaining

2022-04-05 Thread Craig Newman via use-livecode
How is that done? From my phone with a cameraman? The talk would only make 
sense with me in front of the running machine itself, making noise.

Craig

> On Apr 5, 2022, at 1:41 PM, Andre Garzia via use-livecode 
>  wrote:
> 
> I think this is very interesting. I’d love to watch a flash talk on it. 
> 
> Sent from my iPhone
> 
>> On 5 Apr 2022, at 18:38, Craig Newman via use-livecode 
>>  wrote:
>> 
>> Heather.
>> 
>> I probably am one of the oddest LC users. Entirely for either my own use or 
>> for my company. Only once did I sell a system commercially.
>> 
>> But I do use LC to control three very different machines in our shop. Would 
>> it be of any interest to anyone to see one of these in operation?
>> 
>> Regards,
>> 
>> Craig Newman  (dunbarx)
>> 
>> 
>> 
>>> On Apr 5, 2022, at 12:54 PM, Heather Laine via use-livecode 
>>>  wrote:
>>> 
>>> Dear Good Folks of the Use-list,
>>> 
>>> I'm in the final throes of scheduling our upcoming online conference on 
>>> 25-27th April. Its looking great! Multiple fabulous talks have come in, 
>>> there is loads of rich content, we have panels, keynotes and workshops 
>>> galore! We're just missing 3 flashtalks to round out the Flash Talks 
>>> section on Day 3. I know at least 3 of you good people can speak for a mere 
>>> 7 minutes on your topic of choice. Roll up roll up... and send me a talk 
>>> submission :) Pretty please?
>>> 
>>> https://livecode.com/global/apply-to-speak/ 
>>> <https://livecode.com/global/apply-to-speak/>
>>> 
>>> It's going to be a great event. 
>>> 
>>> Warmest Regards to all,
>>> 
>>> Heather
>>> 
>>> P.S. Where is the conference schedule to be seen, I hear you ask? Right 
>>> here:
>>> 
>>> https://livecode.com/global/schedule/
>>> 
>>> Heather Laine
>>> Customer Services Manager and Conference Organizer Extraordinaire
>>> LiveCode Ltd
>>> www.livecode.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: Confirm sort container order...

2022-04-05 Thread Craig Newman via use-livecode
Paul.

I see you have come to the dark side. Welcome.

“Sort", and its newly reborn compound variant, works fine as "sort it ascending 
numeric by word 1 of each && word 2 of each && word 3 of each”

Since “lines” are the default, all one needs, and I mentioned this on the 
forum, is to determine the line with the greatest number of words, and build 
the string accordingly. This takes another couple of lines of code, but no more 
than having that very same number laid out in a series of single line sorts, 
still having to be determined by the maximum number of words or items. whatever.

Craig

> On Apr 5, 2022, at 12:08 PM, Paul Dupuis via use-livecode 
>  wrote:
> 
> On 4/5/2022 10:58 AM, Craig Newman via use-livecode wrote:
>> The discussion may seem academic to some, and perhaps pointless to others. 
>> But I like this sort of nonsense, and actually believe it is rather more 
>> than just that. In fact, it speaks to the internal working of the “sort” 
>> command itself, which seems counterintuitive at least, and a mystery at best.
>> 
>> 
> 
> I certainly agree a nice enhancement to sort would be something like
> 
> sort lines of  by item 3 of each then [by] item 2 of each then [by] item 
> 1 of each
> 
> to replicate exactly (below) but in a single, easier to read, line
> 
> sort lines of  by item 3 of each
> sort lines of  by item 2 of each
> sort lines of  by item 1 of each
> 
> a reduction in code and a more intuitive way of stating a multi-level sort 
> with the addition of a "then", "then by", or some sort of delimiter keyword
> 
> Still that assumes you want to do an ascending text sort for all 3 levels, 
> since ascending text is the default and the syntax is
> 
> sort lines  ascending text by item 3 of each
> 
> If you want different sorts for each key
> 
> sort lines of  ascending text by item 3 of each
> sort lines of  descending numeric by item 2 of each
> sort lines of  ascending international by item 1 of each
> 
> might still be easier that any new syntax that reads something like:
> 
> sort lines of  by item 3 of each ascending text then by item 2 of each 
> descending numeric then by item 1 of each ascending international
> 
> Although the single line is slightly shorter code and still relatively easy 
> to read. Still, I have NO idea how difficult it would be to add the syntax to 
> the LC engine. If not too difficult to implement, it could be a handy 
> enhancement to LC's sort.
> 
> 
> ___
> 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: Flash Talks - 3 slots remaining

2022-04-05 Thread Craig Newman via use-livecode
Heather.

I probably am one of the oddest LC users. Entirely for either my own use or for 
my company. Only once did I sell a system commercially.

But I do use LC to control three very different machines in our shop. Would it 
be of any interest to anyone to see one of these in operation?

Regards,

Craig Newman  (dunbarx)



> On Apr 5, 2022, at 12:54 PM, Heather Laine via use-livecode 
>  wrote:
> 
> Dear Good Folks of the Use-list,
> 
> I'm in the final throes of scheduling our upcoming online conference on 
> 25-27th April. Its looking great! Multiple fabulous talks have come in, there 
> is loads of rich content, we have panels, keynotes and workshops galore! 
> We're just missing 3 flashtalks to round out the Flash Talks section on Day 
> 3. I know at least 3 of you good people can speak for a mere 7 minutes on 
> your topic of choice. Roll up roll up... and send me a talk submission :) 
> Pretty please?
> 
> https://livecode.com/global/apply-to-speak/ 
> 
> 
> It's going to be a great event. 
> 
> Warmest Regards to all,
> 
> Heather
> 
> P.S. Where is the conference schedule to be seen, I hear you ask? Right here:
> 
> https://livecode.com/global/schedule/
> 
> Heather Laine
> Customer Services Manager and Conference Organizer Extraordinaire
> LiveCode Ltd
> www.livecode.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: Confirm sort container order...

2022-04-05 Thread Craig Newman via use-livecode
Paul.

Certainly, and in the forum discussion your point, about the mainstream, 
recommended and “correct” way to sort was mentioned several times.

The discussion may seem academic to some, and perhaps pointless to others. But 
I like this sort of nonsense, and actually believe it is rather more than just 
that. In fact, it speaks to the internal working of the “sort” command itself, 
which seems counterintuitive at least, and a mystery at best.

I like LC mysteries. And there just might be something worthwhile to learn...

Craig

> On Apr 5, 2022, at 10:43 AM, Paul Dupuis via use-livecode 
>  wrote:
> 
> All those forum efforts (except Richard's) ignore that the dictionary entry 
> states that the "sort" command is a stable sort precisely so that you can do 
> multiple sorts to sort by multiple chunks
> 
> Whether you do
> 
>   sort lines of tText by word 3 of each
>   sort lines of tText by word 2 of each
>   sort lines of tText by word 1 of each
> 
> or
> 
> repeat from i = 3 down to 1
>   sort lines of tText by word i of each
> end repeat
> 
> and whether you want to sort by "word i of each" or "item i of each" or 
> "token i of each" or whatever, the multiple sort commands is the LC 
> recommended way to perform  multi-level sort.
> 
> 
> On 3/30/2022 4:16 PM, Craig Newman via use-livecode wrote:
>> I hate that one cannot edit previous posts here like we can on the forum.
>> 
>> I meant “tabs”. not “tase”.
>> 
>> Craig
>> 
>>> On Mar 30, 2022, at 4:15 PM, Craig Newman  
>>> wrote:
>>> 
>>> I am assuming here that there are spaces separating the chars in your list. 
>>> The use of “words” will also delimit if those are tase instead of spaces. 
>>> But the method is worth exploring…
>>> 
>>> Craig
>>> 
>>>> On Mar 30, 2022, at 3:39 PM, Paul Dupuis via use-livecode 
>>>> mailto:use-livecode@lists.runrev.com>> 
>>>> wrote:
>>>> 
>>>> A B C
>>>> A A B
>>>> A B A
>>>> A A A
>>>> A A C
>> ___
>> 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: Confirm sort container order...

2022-04-05 Thread Craig Newman via use-livecode
Time to check the forum. Bernd has made a very significant contribution.

https://forums.livecode.com/viewtopic.php?f=9=36893

> On Apr 5, 2022, at 12:43 AM, Dick Kriesel via use-livecode 
>  wrote:
> 
> 
>> On Mar 30, 2022, at 2:16 PM, Paul Dupuis via use-livecode 
>>  wrote:
>> 
>> sort lines of tText by word 1 of each & word 2 of each & word 3 of each
> 
> Hi, Paul.
> 
> The only feature missing is padding the first two words:
> 
>   sort tText by pad( word 1 of each ) & pad( word 2 of each ) & word 3 of each
> 
> 
> function pad tString
>   put "" into item 1000 of tString
>   replace comma with space in tString
>   return char 1 to 1000 of tString
> 
> 
> Does that work for you?
> 
> — Dick
> ___
> 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: Tools & techniques for one-off consolidation of multiple 'similar' CSV files?

2022-04-04 Thread Craig Newman via use-livecode
Hi.

I rarely deal with the csv monster, but every time I have had to it all boiled 
down to the fact that a comma is a terrible character to use as a delimiter of 
ANY kind.

Ideally it would be possible to simply replace every comma with a tab. The 
returns remain untouched. If that works, you are very lucky. Have you tried it?

Craig

> On Apr 4, 2022, at 1:37 PM, Bob Sneidar via use-livecode 
>  wrote:
> 
> Does all the data need to be in a single table? 
> 
> Sent from my iPhone
> 
>> On Apr 4, 2022, at 10:31, Mike Kerner via use-livecode 
>> mailto:use-livecode@lists.runrev.com>> wrote:
>> 
>> keith,
>> are all the files structured the same way? are they all gathered in the
>> same place?
>> LC's big strength, IMHO, is text handling, so you're right in its
>> wheelhouse.
>> for the simplest example, let's assume that all the files have all the same
>> column layout and they're all in the same folder.
>> in that case, you would
>> * grab the list of files in the folder
>> * exclude files that shouldn't be included - maybe filter everything
>> that doesn't have a .csv suffix. you could do this during the loop, below,
>> or ahead of time.
>> * iterate through the files by reading each one, and appending the contents
>> to a variable/container (if you do this, don't forget to make sure that
>> when you append each file, the last line ends with a line delimiter)
>> * create a new file
>> * save the variable/container to the file
>> 
>> slightly more complicated: the layouts aren't the same
>> you can either:
>> * rearrange the columns upon reading the file or
>> * use something like an sqlite db and create a record for each row,
>> assigning the column in each record based on the column name in the csv
>> file,  or
>> * use a LC array, using the column names in the file as the keys of the
>> array.
>> * create a new file
>> * output the result of whichever of the three solutions you chose to the
>> new file.
>> 
>> both the easy and less-easy scenarios should take, i'm guessing, somewhere
>> between twenty and fifty lines of code, and are easy to implement. if you
>> have a couple hundred files, i think that the LC solution would be much
>> faster and easier to write, test, and run than the drag-and-drop solution.
>> 
>>> On Mon, Apr 4, 2022 at 1:04 PM Keith Clarke via use-livecode <
>>> use-livecode@lists.runrev.com > wrote:
>>> 
>>> Hi folks,
>>> I need to consolidate a couple of hundred CSV files of varying sizes
>>> (dozens to hundreds of rows) and column structures (some shared columns but
>>> many unique), into a single superset dataset that comprises all data from
>>> all files.
>>> 
>>> There are too many files and columns to attempt a manual process, so in
>>> I’ve been trying to achieve this with LiveCode - by iterating through the
>>> files to parse the column header rows into into row template and column
>>> mapping arrays used to build the combined table. However, I'm struggling to
>>> both compile the superset and render the results.
>>> 
>>> I feel I may be designing a very complicated solution for a problem that
>>> has probably been solved before. I wonder if I’m missing a simpler method -
>>> with LiveCode or perhaps with Excel or ‘drag & drop’ into some kind of
>>> self-organising database GUI for SQLite, etc?
>>> 
>>> Thanks in advance for any ideas.
>>> Best,
>>> Keith
>>> ___
>>> use-livecode mailing list
>>> use-livecode@lists.runrev.com
>>> Please visit this url to subscribe, unsubscribe and manage your
>>> subscription preferences:
>>> http://lists.runrev.com/mailman/listinfo/use-livecode
>>> 
>> 
>> 
>> -- 
>> On the first day, God created the heavens and the Earth
>> On the second day, God created the oceans.
>> On the third day, God put the animals on hold for a few hours,
>>  and did a little diving.
>> And God said, "This is good."
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription 
>> preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
> ___
> 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: Confirm sort container order...

2022-03-30 Thread Craig Newman via use-livecode
Hmmm.

It isn’t that the “D” is concatenated onto the “ABC, (that would never happen)  
but rather that the word ”ABC” comes before “AB”, but only if there is a second 
word in each line:

ABC
AB

Sorts to

AB
ABC

———

BUT:

ABC XXX
AB XXX

sorts to:

ABC XXX
AB XXX

Not sure I get this.

Craig


> On Mar 30, 2022, at 5:16 PM, Paul Dupuis via use-livecode 
>  wrote:
> 
> On 3/30/2022 4:39 PM, Craig Newman via use-livecode wrote:
>> Paul
>> 
>> I just reread your earlier post. Did you mean concatenating as if each line 
>> became a single long word? That would never do, of course, and is not how 
>> the line of code works.
>> 
>> 
> 
> This is what I was referring to:
> 
> Input data: (note line 5)
> ABE XYZ GGG
> ACB XYZ GHH
> ABC XYZ DEF
> AAB XYZ GGG
> AB D GHH
> AAA XYZ DEF
> 
> sortlines oftText by word 1 ofeach & word 2 ofeach & word 3 ofeach
> 
> Gives:
> 
> AAA XYZ DEF
> AAB XYZ GGG
> ABC XYZ DEF
> AB D  GHH
> ABE XYZ GGG
> ACB XYZ GHH
> 
> Note line 4 should come before line 3 as "AB" should sort before "ABC" but in 
> the sort above it gets concatenated with the "D" in column 2 to form ABD 
> which places it between ABC and ABE. The concatination can cause errors in 
> the sort order depending upon the actual data being sorted. However, if you 
> sort as follows:
> 
>   sort lines of tText by word 3 of each
>   sort lines of tText by word 2 of each
>   sort lines of tText by word 1 of each
> 
> You get it sorted correctly:
> 
> AAA XYZ DEF
> AAB XYZ GGG
> AB D  GHH
> ABC XYZ DEF
> ABE XYZ GGG
> ACB XYZ GHH
> 
> 
> 
> ___
> 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: Confirm sort container order...

2022-03-30 Thread Craig Newman via use-livecode
Maybe this is easier to read:

ABC XYZ GGG

ACB XYZ GHH

ABC XYZ DEF

AAB XYZ GGG

AAC XYZ GHH

AAA XYZ DEF


gives

AAA XYZ DEF

AAB XYZ GGG

AAC XYZ GHH

ABC XYZ DEF

ABC XYZ GGG

ACB XYZ GHH


Each word is sorted in a stable way. The first word takes overall precedence. 
The second word takes second precedence and so on. There is no limit to the 
number of terms permitted in the code.

Craig

> On Mar 30, 2022, at 4:39 PM, Craig Newman via use-livecode 
>  wrote:
> 
> Paul
> 
> I just reread your earlier post. Did you mean concatenating as if each line 
> became a single long word? That would never do, of course, and is not how the 
> line of code works.
> 
> Craig
> 
>> On Mar 30, 2022, at 4:26 PM, Paul Dupuis via use-livecode 
>>  wrote:
>> 
>> On 3/30/2022 4:13 PM, Craig Newman via use-livecode wrote:
>>> A way I have always used was developed back in the HC days. Assuming you 
>>> have your list in the variable “yourList"
>>> 
>>> sort lines of yourList by word 1 of each & word 2 of each & word 3 of each
>>> 
>>> 
>> 
>> I used single letters as an example, but my text is tab delimited and each 
>> cell is moderately long text.
>> 
>> I think using "word 1 of each & word 2 of each & word 3 of each" or "item 1 
>> of each & item 2 of each & item 3 of each" concatenates all 3 "cells" 
>> together and sort by that string of characters. I think this could result in 
>> an invalid sort order of, for example, item 2 started with words found at 
>> the end of some items 1's.
>> 
>> 
>> 
>> ___
>> 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: Confirm sort container order...

2022-03-30 Thread Craig Newman via use-livecode
Paul

I just reread your earlier post. Did you mean concatenating as if each line 
became a single long word? That would never do, of course, and is not how the 
line of code works.

Craig

> On Mar 30, 2022, at 4:26 PM, Paul Dupuis via use-livecode 
>  wrote:
> 
> On 3/30/2022 4:13 PM, Craig Newman via use-livecode wrote:
>> A way I have always used was developed back in the HC days. Assuming you 
>> have your list in the variable “yourList"
>> 
>> sort lines of yourList by word 1 of each & word 2 of each & word 3 of each
>> 
>> 
> 
> I used single letters as an example, but my text is tab delimited and each 
> cell is moderately long text.
> 
> I think using "word 1 of each & word 2 of each & word 3 of each" or "item 1 
> of each & item 2 of each & item 3 of each" concatenates all 3 "cells" 
> together and sort by that string of characters. I think this could result in 
> an invalid sort order of, for example, item 2 started with words found at the 
> end of some items 1's.
> 
> 
> 
> ___
> 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: Confirm sort container order...

2022-03-30 Thread Craig Newman via use-livecode
Paul.

So if you had the following list of words:

Ant Bat Chicken

Ash Arc Baton

Abacus aardvark Ax

Axle Apron Allspice

Africa Amazing Club


and ran the same line of code, you would get:

Abacus aardvark Ax

Africa Amazing Club

Ant Bat Chicken

Ash Arc Baton

Axle Apron Allspice


Is this what you meant, and intended?

Craig


> On Mar 30, 2022, at 4:26 PM, Paul Dupuis via use-livecode 
>  wrote:
> 
> On 3/30/2022 4:13 PM, Craig Newman via use-livecode wrote:
>> A way I have always used was developed back in the HC days. Assuming you 
>> have your list in the variable “yourList"
>> 
>> sort lines of yourList by word 1 of each & word 2 of each & word 3 of each
>> 
>> 
> 
> I used single letters as an example, but my text is tab delimited and each 
> cell is moderately long text.
> 
> I think using "word 1 of each & word 2 of each & word 3 of each" or "item 1 
> of each & item 2 of each & item 3 of each" concatenates all 3 "cells" 
> together and sort by that string of characters. I think this could result in 
> an invalid sort order of, for example, item 2 started with words found at the 
> end of some items 1's.
> 
> 
> 
> ___
> 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: Confirm sort container order...

2022-03-30 Thread Craig Newman via use-livecode
I hate that one cannot edit previous posts here like we can on the forum.

I meant “tabs”. not “tase”.

Craig

> On Mar 30, 2022, at 4:15 PM, Craig Newman  wrote:
> 
> I am assuming here that there are spaces separating the chars in your list. 
> The use of “words” will also delimit if those are tase instead of spaces. But 
> the method is worth exploring…
> 
> Craig
> 
>> On Mar 30, 2022, at 3:39 PM, Paul Dupuis via use-livecode 
>> mailto:use-livecode@lists.runrev.com>> wrote:
>> 
>> A B C
>> A A B
>> A B A
>> A A A
>> A A C
> 

___
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: Confirm sort container order...

2022-03-30 Thread Craig Newman via use-livecode
I am assuming here that there are spaces separating the chars in your list. The 
use of “words” will also delimit if those are tase instead of spaces. But the 
method is worth exploring…

Craig

> On Mar 30, 2022, at 3:39 PM, Paul Dupuis via use-livecode 
>  wrote:
> 
> A B C
> A A B
> A B A
> A A A
> A A C

___
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: Confirm sort container order...

2022-03-30 Thread Craig Newman via use-livecode
A way I have always used was developed back in the HC days. Assuming you have 
your list in the variable “yourList" 

sort lines of yourList by word 1 of each & word 2 of each & word 3 of each


Nothing shows off the stable sort power of either HC or LC like that.

Craig

> On Mar 30, 2022, at 3:39 PM, Paul Dupuis via use-livecode 
>  wrote:
> 
> A B C
> A A B
> A B A
> A A A
> A A C

___
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: New user

2022-03-30 Thread Craig Newman via use-livecode
Yes, welcome.

Please know that there are two principal venues for LiveCode discussion. The 
other one (my personal favorite) is at:

https://forums.livecode.com


> On Mar 30, 2022, at 9:54 AM, Paul Dupuis via use-livecode 
>  wrote:
> 
> On 3/30/2022 9:50 AM, Guillaume Hédieu via use-livecode wrote:
>> Hi everyone,
>> 
>> Just a message to say hello. I'm new to Livecode. First of all, please
>> apologize for my english, it's not my native language.
>> 
>> I am a computer scientist in an association that trains students for
>> working in some social profession.
>> 
>> I like "make and dev" and working with Livecode it's just a hobby for me. I
>> love learning and discovering new things and tools, that's why I am here.
>> 
>> Pleased to meet the community, I hope I will be able to read some of your
>> messages here.
>> 
>> Have a nice day,
>> 
>> Regards,
>> 
>> Guillaume
>> ___
>> 
> 
> Welcome!
> 
> ___
> 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: Counting Syllables

2022-03-24 Thread Craig Newman via use-livecode
I am actually having trouble finding a dictionary “dump” that would provide a 
list of words along with a syllabic entry attached. If such a thing exists, we 
only need a dozen lines of code and ten minutes to create a database mapping 
each word to its syllable count.

Anyone know of such a resource?

Craig

> On Mar 24, 2022, at 9:34 AM, Rick Harrison via use-livecode 
>  wrote:
> 
> Yes, I’m looking into that.  Web-scraping isn’t fun though, and it can be a 
> lot of work.
> One also has to make sure it doesn’t violate company policies etc.  I’m not a 
> fan
> of getting sued.
> 
> Rick
> 
>> On Mar 24, 2022, at 1:55 AM, Dick Kriesel via use-livecode 
>>  wrote:
>> 
>> You could scrape an online dictionary to obtain the syllabification for each 
>> given word.
>> 
>> For example, if you investigate 
>> https://www.dictionary.com/browse/syllabification 
>>  
>> > >, you can find the query 
>> that yielded "syl·lab·i·fi·ca·tion."
>> 
>> You might find other dictionaries that make it easier.
>> 
>> — Dick
> 
> ___
> 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: Counting Syllables

2022-03-22 Thread Craig Newman via use-livecode
Brian.

Storage space should not be an issue. A typical dictionary , whether American 
(191,000)  or British (280,000), with a median word length of about 8 chars, 
still only occupies a handful of MB of storage.

Craig

> On Mar 22, 2022, at 10:25 AM, Rick Harrison via use-livecode 
>  wrote:
> 
> Yes, that is where I’m at.  An existing database would make things a lot 
> easier.
> 
> Rick
> 
>> On Mar 22, 2022, at 9:06 AM, Craig Newman via use-livecode 
>>  wrote:
>> 
>> If you have a database at all, it would cost nothing much in speed to just 
>> use the whole thing all the time. Put the database into an array, of the 
>> form:
>> “cat 1”
>> "chicken 2”
>> “elephant 3”
>> ‘miaou 1"
>> …
>> 
>> The hard part is finding that database. It would take quite a while to build 
>> and finalize your own.
>> 
>> Craig
> 
> ___
> 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: Counting Syllables

2022-03-22 Thread Craig Newman via use-livecode
If you have a database at all, it would cost nothing much in speed to just use 
the whole thing all the time. Put the database into an array, of the form:
“cat 1”
"chicken 2”
“elephant 3”
‘miaou 1"
…

The hard part is finding that database. It would take quite a while to build 
and finalize your own.

Craig


> On Mar 21, 2022, at 10:47 PM, Brian Milby via use-livecode 
>  wrote:
> 
> Well, you could set up your rules and just database the exceptions.  Then you 
> at least have a guess for the words that you don’t “know” the answer for.  If 
> there is a database miss, then use the rule set.

___
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: There is no TextEdit.app???

2022-03-22 Thread Craig Newman via use-livecode
Bob.

There is no way that the uppercase/lowercase difference in a character in a 
literal can have that sort of effect. Are you saying you can duplicate this???

Craig

> On Mar 22, 2022, at 7:01 AM, Andre Garzia via use-livecode 
>  wrote:
> 
> Damn, I took a long time formatting that message so the source-code would be 
> legible. Well, sorry, don’t know if it was my mail app or the mailing-list 
> software, but something borked it.
> 
>> On 22 Mar 2022, at 10:36, Andre Garzia  wrote:
>> 
>> Bob,
>> 
>> Another way to check if an application is installed on a mac is by using 
>> AppleScript. Here are some functions that work together to check if TextEdit 
>> is installed.
>> 
>> function q txt
>> return quote & txt & quote
>> end q
>> 
>> function isApplicationInstalledByBundleID pID
>> put "try" & cr into tScript
>> put "tell application " & q("Finder") & " to get application file id " & 
>> q(pID) & cr after tScript
>> put "return true" & cr after tScript
>> put "on error" & cr after tScript
>> put "return false" & cr after tScript
>> put "end try" & cr after tScript
>> 
>> do tScript as “applescript"
>> 
>> if the result is "{true}” then
>>   return true
>> else
>>   return false
>> end if
>> end isApplicationInstalledByBundleID
>> 
>> function isTextEditInstalled
>> return isApplicationInstalledByBundleID("com.apple.TextEdit")
>> end isTextEditInstalled
>> 
>> 
>> 
>>> On 21 Mar 2022, at 22:58, Bob Sneidar via use-livecode 
>>>  wrote:
>>> 
>>> I have the following in a script, and it does not seem to be able to find 
>>> the TextEdit.app application on a Mac! 
>>> 
>>> put "/Applications/TextEdit.app" into tTextEditorPath
>>> if there is a folder tTextEditorPath  then 
>>>   put true into tValidPath
>>> end if
>>> 
>>> if tValidPath is false then 
>>>put empty into tTextEditorPath
>>> end if
>>> 
>>> That cannot be right. 
>>> 
>>> MacOS Catalina 10.15.7 LC 9.6.7 lc2. 
>>> 
>>> Bob S
>>> 
>>> 
>>> ___
>>> 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: Counting Syllables

2022-03-21 Thread Craig Newman via use-livecode
Such cases are rare, certainly, but “queue” comes to mind. I am sure that a 
vowel parsing routine will be reasonably accurate, but not perfect, as per the 
previous example.

A quick search did not turn up any “list of all words and their syllable 
count”, but there still might be one. One site mentioned that algorithms were 
being used, but were “not perfect”.

Craig



> On Mar 21, 2022, at 3:21 PM, Rick Harrison via use-livecode 
>  wrote:
> 
> “miaou” has 4 consecutive vowels so I’m not surprised it has 2 syllables.  
> That may be a rule.
> 
> The average person uses about 20,000 words on a regular basis.
> 
> They know about 40,000 visually.
> 
> It’s estimated there are about 1.25 million english words, but a lot of those 
> are scientific terms.
> 
> Anyone up to building a cross reference database that can be searched quickly?
> 
> Rick
> 
>> “miaou” is two syllables
> 
>> On Mar 21, 2022, at 10:56 AM, Craig Newman via use-livecode 
>>  wrote:
>> 
>> I would think one would need a database that maps all words with the number 
>> of syllables in those words. I am sure some sort of algorithm would do a 
>> creditable job, but I bet it would not do a perfect job. For example, and 
>> embedded “eau” is usually one syllable, but a word such as “miaou” is two 
>> syllables
>> 
>> Craig
> 
> ___
> 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: Counting Syllables

2022-03-21 Thread Craig Newman via use-livecode
I would think one would need a database that maps all words with the number of 
syllables in those words. I am sure some sort of algorithm would do a 
creditable job, but I bet it would not do a perfect job. For example, and 
embedded “eau” is usually one syllable, but a word such as “miaou” is two 
syllables

Craig

> On Mar 20, 2022, at 2:51 PM, Rick Harrison via use-livecode 
>  wrote:
> 
> Hi Richmond,
> 
> Yes, English. Sorry I forgot to be specific, I thought it was implied.
> 
> Yes, I have been counting vowels, but there appear to be a lot of exceptions,
> so there must be a lot more rules.
> 
> I need to know what all the rules are to make it work if possible.
> 
> There are websites out there on the internet that will count
> syllables in whatever text given to them so it must be possible.
> How are they doing it?  Is it an algorithm ,or are they comparing
> the words to a database table that has all the dictionary information?
> 
> Thanks,
> 
> Rick
> 
> 
>> On Mar 20, 2022, at 2:29 PM, Richmond via use-livecode 
>>  wrote:
>> 
>> Well, syllables are language dependent, so let's suppose for the moment that
>> you are ONLY working with English, the, presumably, you can set up vowels
>> as item-delimiters: although you might get a bit mixed up with words sucj
>> as 'beautiful' which, while having 5 vowels only has 3 syllables.
>> 
>> Basically you have to work out how to detect V+C and open vowels at the
>> end of words.
> 
> ___
> 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: destroystack/destroywindow not working?

2022-03-21 Thread Craig Newman via use-livecode
I have seen this on Mac forever. I actually do not believe the “destroy” family 
of features does anything at all.

Craig

> On Mar 21, 2022, at 8:21 AM, Klaus major-k via use-livecode 
>  wrote:
> 
> Hi all,
> 
>> Am 21.03.2022 um 12:46 schrieb Klaus major-k via use-livecode 
>> :
>> I have a stack with its destroystack/destroywindow
>> properties set to true.
>> 
>> When I close it and open another stack which has a 
>> substack with ther same name as a substack of the 
>> previous stack, I get this really annoying dialog: 
>> "A stack with that name is already in memory..."
>> 
>> Shouldn't setting destroystack/destroywindow prevent this?
>> Or am I misunderstanding the meaning of these props?
>> 
>> Thanks for any insight!
> 
> looks like this is an IDE "feature"!?
> 
> I just noticed the menuitem -> Close and remove from memory
> Go figure! :-D
> 
> 
> Best
> 
> Klaus
> 
> --
> Klaus Major
> https://www.major-k.de
> https://www.major-k.de/bass
> kl...@major-k.de
> 
> 
> ___
> 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: Windows 11 incompatible?

2022-03-14 Thread Craig Newman via use-livecode
Hi, Colin.

Hmmm.  I assume that all four of those keys are pressed at the same time?

Craig

> On Mar 14, 2022, at 11:52 AM, Colin Holgate via use-livecode 
>  wrote:
> 
> Yes it does. The M is for Move, if you’re working on a non-English system you 
> would type the first letter for Move in your language.
> 
> 
>> On Mar 14, 2022, at 9:47 AM, Craig Newman via use-livecode 
>>  wrote:
>> 
>> Do I understand that, on Windows, typing those keys makes the frontmost 
>> window track the cursor???
> 
> ___
> 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: Windows 11 incompatible?

2022-03-14 Thread Craig Newman via use-livecode
Hi.

Do I understand that, on Windows, typing those keys males the frontmost window 
track the cursor???

Craig

> On Mar 14, 2022, at 11:41 AM, Bob Sneidar via use-livecode 
>  wrote:
> 
> Is there a Macintosh equivalent to that?? 
> 
> Bob S
> 
> 
>> On Mar 13, 2022, at 14:56 , Colin Holgate via use-livecode 
>>  wrote:
>> 
>> There is an issue on Windows that would show similar symptoms. That is, if a 
>> window is opened off screen it’s as if the application has frozen.
>> 
>> To see if that is the problem, type Alt-spacebar, M, any arrow key, and move 
>> the cursor. The offscreen window will be attached to the cursor, and a 
>> left-click will drop it off in the right place.
>> 
>> 
>>> On Mar 13, 2022, at 3:40 PM, J. Landman Gay via use-livecode 
>>>  wrote:
>>> 
>>> Well, you'd need an account with a school but since the problem is only on 
>>> launch you might be able to test that part.
>>> 
>>> 
>>> 
>>> On 3/13/22 2:52 PM, Colin Holgate via use-livecode wrote:
 Do you have an app I can test?
> On Mar 13, 2022, at 1:31 PM, J. Landman Gay via use-livecode 
>  wrote:
> 
> We're getting reports that our LC app won't launch after the new Windows 
> 11 update. Anyone else seeing this? If so, do you know what the problem 
> is?
> 
> -- 
> 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
>> 
>> 
>> ___
>> 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: Paste no closeField

2022-03-11 Thread Craig Newman via use-livecode
OK.

Does this help? It catches pasting, but not typing.

on textChanged

if the commandKey is down then beep

end textChanged


> On Mar 11, 2022, at 10:52 AM, Bob Sneidar via use-livecode 
>  wrote:
> 
> Because I don’t want to trigger it every time someone types a character, but 
> that would be one way to do it. I clean up anything I drag or type into 
> fields, stripping all but printable ascii because OCR PDF files contain a lot 
> of crap that wreaks havoc with databases. 
> 
> Sent from my iPhone
> 
>> On Mar 11, 2022, at 05:56, Craig Newman via use-livecode 
>>  wrote:
>> 
>> Hi.
>> 
>> Why not use the “textChanged” message? That one would always fire if pasting 
>> text.
>> 
>> Craig
>> 
>>>> On Mar 10, 2022, at 5:57 PM, Bob Sneidar via use-livecode 
>>>>  wrote:
>>>> 
>>>> works with fields whose nam
>> 
>> ___
>> 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: use-livecode Digest, Vol 222, Issue 8

2022-03-11 Thread Craig Newman via use-livecode
I play Scrabble, not Boggle.

Regardless of which dictionary people use, there are many more words of  8 - 10 
characters than of 4 - 6 characters. 


Craig


> On Mar 10, 2022, at 5:25 PM, doc hawk via use-livecode 
>  wrote:
> 
> 
> jacqui jawed,
> 
> 
>> filter tHugeDict without regex pattern "[qkxyz]”
> 
> I expect that would be faster.
> 
> But it will also bring words that are too long, although I have no idea 
> whether or not there would be enough to matter.
> 
> ___
> 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: Paste no closeField

2022-03-11 Thread Craig Newman via use-livecode
Hi.

Why not use the “textChanged” message? That one would always fire if pasting 
text.

Craig

> On Mar 10, 2022, at 5:57 PM, Bob Sneidar via use-livecode 
>  wrote:
> 
>>  works with fields whose nam

___
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: Into the future

2022-02-28 Thread Craig Newman via use-livecode
All.

I am not sure I am following this thread correctly. Is the issue that some sort 
of certificate is now required for creating a standalone for desktop? 

Craig

> On Feb 28, 2022, at 4:12 PM, William Prothero via use-livecode 
>  wrote:
> 
> Dealing with Apple certificates is the most onerous part of building a 
> standalone. I really wish the livecode team could help address this issue and 
> help us out.
> 
> best,
> Bill
> 
> William A Prothero
> 
>> On Feb 28, 2022, at 12:56 PM, Tom Glod via use-livecode 
>>  wrote:
>> 
>> I use a mac in the cloud . but i have yet to do any signing  I
>> gotta get myself to do it this week. thanks for the reminder...i've been
>> putting it off like its math homework only worse. :D
>> 
>> https://www.macincloud.com/
>> 
>>> On Mon, Feb 28, 2022 at 3:38 PM matthias rebbe via use-livecode <
>>> use-livecode@lists.runrev.com> wrote:
>>> 
>>> Bob,
>>> 
>>> with which version of LC did you see this?
>>> 
>>> I had a look at the most current dp version of 10. If LC would require a
>>> certificate then there should be somewhere in the standalone settings a
>>> area where one could select an appropriate certificate.  But that is not
>>> the case.
>>> 
>>> What LC does for some time now when creating a macOS standalone is doing
>>> an ad-hoc code signing. Please do not ask me what that is, ;)
>>> but  this kind of code signing seems not to require a certificate.
>>> The ad-hoc code signing is done in the stack
>>> revsaveasstandalone.livecodescript.  Search for 'private command
>>> performAdHocCodesign'
>>> 
>>> So there might some other problem and LC does come up with a misleading
>>> error message.
>>> 
>>> Matthias
>>> 
>>> 
>>> 
>>> 
>>> 
 Am 28.02.2022 um 19:52 schrieb Bob Sneidar via use-livecode <
>>> use-livecode@lists.runrev.com>:
 
 Hi Klaus.
 
 Actually the new LC versions do not create the standalone without those
>>> certificates. That is the error dialog I get. If there is a way to disable
>>> that feature that would be great!
 
 Bob S
 
 
> On Feb 28, 2022, at 10:18 , Klaus major-k via use-livecode <
>>> use-livecode@lists.runrev.com> wrote:
> 
> Hi Bob,
> 
>> Am 28.02.2022 um 18:18 schrieb Bob Sneidar via use-livecode <
>>> use-livecode@lists.runrev.com>:
>> 
>> Okay, so I am at the point that I cannot build apps without
>>> codesigning and notarizing. Livecode will throw an error now if I try and
>>> don't have these certificates installed. Great.
>> 
>> So I have been going through the tutorial, and I see I have to be an
>>> Apple Developer, which means I have to shell out yet another $100 per year.
>>> Fine, I did that, even though my app is for internal consumption only.
>> 
>> Now It appears that for me to get the certificates needed to create a
>>> Mac standalone, I need xCode! Okay, I go to download xCode, and it will not
>>> install because my MacOS is too old! 10.15.1 is apparently ancient! So I am
>>> at the point now where I am asking myself, is this really worth it? After
>>> all the back and forth on the list where people's certificates expire, or
>>> the version of xCode they are forced to use isn't compatible with one thing
>>> or another, is building Mac standalones really worth it?
>> 
>> So my question is, do I really have to go through all this just to
>>> create a Mac standalone from livecode? Or do these other utilities,
>>> mrSignNotarizeHelperV3 for example, eliminate the need for all of that?
>> 
>> Bob S
> 
> you can still create a standalone with LC without any certificate etc.!
> 
>> ...even though my app is for internal consumption only.
> 
> 
> But your user(s) need to check -> Allow downloads from: Appstore and
>>> trusted developers
> In the macOS system settings -> Security
> 
> And after the they need to right-click your app and select "Open..."
>>> from the context menu
> and confirm once or twice that they really want to open that app.
> 
> After that they can doubleclick the app furthermore like the used to.
> 
> 
> Best
> 
> Klaus
> 
> --
> Klaus Major
> https://www.major-k.de
> https://www.major-k.de/bass
> kl...@major-k.de
 
 
 ___
 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 

Re: LC 9.6.6 oddities when showing/hiding text

2022-01-28 Thread Craig Newman via use-livecode
Hi.

Still annoyed at having to answer in the use-list as opposed to the Forum.

I made a new stack with a button an a field. In the button script:

on mouseUp

hide fld 1

put "fld 1" into lFieldRef

put  “dissolve" into tEffect

put "show "&" with visual effect " into tDo

do tDo

end mouseUp

Works just fine.

Why go through all the “do” stuff? Why not just:

show fld 1 with visual effect dissolve

Craig

> On Jan 27, 2022, at 9:12 PM, William Prothero via use-livecode 
>  wrote:
> 
> put "show "&" with visual effect " into tDo
> 
> --wait for 1 second with messages
> 
> wait 500 milliseconds with messages
> 
> do tDo

___
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: Search & Replace

2022-01-12 Thread Craig Newman via use-livecode
Klaus.

Has to be the “ordinary" one in the IDE, also in the “Edit” menu, at the 
bottom. To be fair, that is in fact a stack, though that  particular fact is 
not pertinent.

Craig

> On Jan 12, 2022, at 2:06 PM, Klaus major-k via use-livecode 
>  wrote:
> 
> Hi Craig,
> 
>> Am 12.01.2022 um 20:00 schrieb Craig Newman via use-livecode 
>> mailto:use-livecode@lists.runrev.com>>:
>> 
>> What Jacque said. If not on a Mac, it is in the “Edit” menu, “Find and 
>> Replace”.
> 
> I saw in the forum that Richmond is looking for the "Find and Replace" STACK 
> file,
> go figure. 8-)
> 
>> Craig
>> 
>>> On Jan 12, 2022, at 11:44 AM, J. Landman Gay via use-livecode 
>>>  wrote:
>>> 
>>> If you're in the script editor you'll see different menus and cmd-F will 
>>> bring up the editor's Find which appears between the script and the 
>>> variable pane.
>>> --
>>> Jacqueline Landman Gay | jac...@hyperactivesw.com
>>> HyperActive Software | http://www.hyperactivesw.com
>>> On January 12, 2022 3:15:19 AM Klaus major-k via use-livecode 
>>>  wrote:
>>> 
>>>> Hi Richmond,
>>>> 
>>>>> Am 12.01.2022 um 10:08 schrieb Richmond via use-livecode 
>>>>> :
>>>>> 
>>>>> I am trying to locate the Search & Replace dialog inwith the LC IDE
>>>>> but seem unable to . . .
>>>> 
>>>> new to LC? 8-)
>>>> 
>>>> Last item in menu -> Edit
>>>> Or CMD-F.
>>>> 
>>>>> Best, Richmond.
>>>> 
>>>> Best
>>>> 
>>>> Klaus
> 
> Best
> 
> Klaus
> 
> --
> Klaus Major
> https://www.major-k.de <https://www.major-k.de/>
> https://www.major-k.de/bass <https://www.major-k.de/bass>
> kl...@major-k.de <mailto:kl...@major-k.de>
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com <mailto: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 
> <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: Search & Replace

2022-01-12 Thread Craig Newman via use-livecode
What Jacque said. If not on a Mac, it is in the “Edit” menu, “Find and Replace”.

Craig

> On Jan 12, 2022, at 11:44 AM, J. Landman Gay via use-livecode 
>  wrote:
> 
> If you're in the script editor you'll see different menus and cmd-F will 
> bring up the editor's Find which appears between the script and the variable 
> pane.
> --
> Jacqueline Landman Gay | jac...@hyperactivesw.com
> HyperActive Software | http://www.hyperactivesw.com
> On January 12, 2022 3:15:19 AM Klaus major-k via use-livecode 
>  wrote:
> 
>> Hi Richmond,
>> 
>>> Am 12.01.2022 um 10:08 schrieb Richmond via use-livecode 
>>> :
>>> 
>>> I am trying to locate the Search & Replace dialog inwith the LC IDE
>>> but seem unable to . . .
>> 
>> new to LC? 8-)
>> 
>> Last item in menu -> Edit
>> Or CMD-F.
>> 
>>> Best, Richmond.
>> 
>> Best
>> 
>> Klaus
>> 
>> --
>> Klaus Major
>> https://www.major-k.de
>> https://www.major-k.de/bass
>> kl...@major-k.de
>> 
>> 
>> ___
>> 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: scripted Show tooltip not a thing?

2022-01-11 Thread Craig Newman via use-livecode
You can do this. In a button script;

on mouseenter

set the tooltip of me to random(999)

end mouseenter


Now every time you move the cursor into that button, you get a new integer when 
you hover.

Craig

> On Jan 11, 2022, at 9:38 AM, Klaus major-k via use-livecode 
>  wrote:
> 
> Hi David,
> 
>> Am 11.01.2022 um 15:29 schrieb David Glasgow via use-livecode 
>> :
>> 
>> Hi folks
>> 
>> I have an app in which tooltips are generally off.  I also have a button 
>> menu which allows the selection of equality/inequelity.  Users are non 
>> technical, and on selection (i.e. not the usual hover) I wanted to pop up a 
>> brief tooltip describing the selected item in ordinary language 
>> (irrespective of whether tooltips are globally on or off):
>> 
>> on menuPick pChosenItem
>>  set the label of me to pChosenitem
>>  switch
>> case pChosenItem = "="
>>set the tooltip of me to "Equals"
>>break
>> case pChosenItem = "≤"
>>set the tooltip of me to  “Is at least"
>>break
>> case pChosenItem = "≅"
>>set the tooltip of me to “Is approximately"
>>break
>>  end switch
>>  set the tooltipdelay to 500
>>  show the tooltip of me
>>  set the tooltip delay to 0
>> end menuPick
>> 
>> It seems  show the tooltip of me isn’t a thing.  I appreciate that I could 
>> show and hide an ordinary field, but I wondered if I have overlooked a 
>> suitable message and/or syntax that will enable what I want. 
>> 
>> 
>> Best Wishes,
>> 
>> David Glasgow
> 
> well, we cannot explicitely show a tooltip by script.
> So "show the tooltup of me" will not work if it doesn't throw an error.
> 
> Problem in your script:
> ...
>  set the tooltipdelay to 500
>  ## from this point the tooltip will appear in 500 millisecs
>  ## show the tooltip of me
> 
>  ## but this will disable the tooltip again much EARLIER than the 500 
> millisecs!
>  ## LC is too fast for this :-)
>  set the tooltip delay to 0
> ...
> 
> 
> Best
> 
> Klaus
> 
> 
> 
> --
> Klaus Major
> https://www.major-k.de 
> https://www.major-k.de/bass 
> kl...@major-k.de 
> 
> 
> ___
> 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: Can I still change LC code?

2022-01-10 Thread Craig Newman via use-livecode
Tom.

There was a pretty long thread here about modifying those dialogs. They are 
just stacks, after all, but the IDE is protective of them. I think the upshot 
was that you can hack anything, but better to roll your own. These would be 
just stacks, after all, and you can start with a clean slate. Since they are 
yours, sharing them is no different than sharing anything else.

Craig

> On Jan 10, 2022, at 1:13 PM, Tom Glod via use-livecode 
>  wrote:
> 
> Hi Folks,
> 
> Am I allowed to modify the answer and ask dialog stack to be what I need it
> to be? and build my standalones from the modified version?
> 
> and can those modified stacks be shared with others?
> 
> Thanks in advance,
> 
> -- 
> Tom Glod
> 
> Founder & Developer @ MakeShyft R.D.A 
> Build Software with AppStarterStack  for
> Livecode
> Save Time with The Time Saver's Toolbox 
> ___
> 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: Lost the variables and errors panel in script editor

2022-01-10 Thread Craig Newman via use-livecode
I use a second monitor rotated to a tall vertical to hold the SE. In going from 
LC to other places and back again, or  whatever, the SE sometimes hasty be 
reset in terms of its rect and topLeft. This always works just fine. When you 
get the SE back in shape, note both those properties and reset them when needed.

Craig

> On Jan 8, 2022, at 12:02 PM, J. Landman Gay via use-livecode 
>  wrote:
> 
> I think the editor only adjusts its layout with a manual change. Try setting 
> the bottom of the window to something you can grab with the mouse and then 
> dragging a corner a bit to change its size.
> --
> Jacqueline Landman Gay | jac...@hyperactivesw.com
> HyperActive Software | http://www.hyperactivesw.com
> On January 7, 2022 5:24:18 PM Michael Lew via use-livecode 
>  wrote:
> 
>> I'm feeling frustrated and silly as I'm a long time user and this problem 
>> should have a trivially easy solution.
>> 
>> The script editor was too tall to fit on my screen and so I made it shorter 
>> with 'set the height of window "revNewScriptEditor 1" to 800. That worked OK 
>> but the errors and variables panes that usually show at the bottom of the 
>> window are now gone. How do I get them back?
>> ___
>> 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: OT: Wordle

2022-01-07 Thread Craig Newman via use-livecode
Ali.

Smug as we Americans are, that is why we stick to our blinkered word list. 
There are just too many random strings of characters in CSW for our provincial 
taste.

Craig

> On Jan 7, 2022, at 11:36 AM, Craig Newman via use-livecode 
>  wrote:
> 
> Ali.
> 
> Thanks.
> 
> I am joining a support group to help me stop playing, and get back to 
> Scrabble.
> 
> But why limit the lexicon to so few words? Even TWL has over 8000 five-letter 
> words, and SOWPODS many more.
> 
> Craig
> 
>> On Jan 7, 2022, at 10:37 AM, Roger Guay via use-livecode 
>>  wrote:
>> 
>> Very nice! Thank you Ali
>> 
>> Roger
>> 
>>> On Jan 7, 2022, at 2:53 AM, Ali Lloyd via use-livecode 
>>>  wrote:
>>> 
>>> Many of you will no doubt already be addicted to the game 'Wordle' (if not,
>>> prepare to be: https://www.powerlanguage.co.uk/wordle/) - the only problem
>>> with it is that you only get one per day to solve. So I have taken the
>>> liberty of making an unlimited version (in LC of course)
>>> https://alilloyd.livecodehosting.com/wordle/wordle.html
>>> ___
>>> use-livecode mailing list
>>> use-livecode@lists.runrev.com
>>> Please visit this url to subscribe, unsubscribe and manage your 
>>> subscription preferences:
>>> http://lists.runrev.com/mailman/listinfo/use-livecode
>> 
>> 
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription 
>> preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


___
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: Wordle

2022-01-07 Thread Craig Newman via use-livecode
Error, TWL has over 9000 five-letter words

> On Jan 7, 2022, at 11:36 AM, Craig Newman via use-livecode 
>  wrote:
> 
> Ali.
> 
> Thanks.
> 
> I am joining a support group to help me stop playing, and get back to 
> Scrabble.
> 
> But why limit the lexicon to so few words? Even TWL has over 8000 five-letter 
> words, and SOWPODS many more.
> 
> Craig
> 
>> On Jan 7, 2022, at 10:37 AM, Roger Guay via use-livecode 
>>  wrote:
>> 
>> Very nice! Thank you Ali
>> 
>> Roger
>> 
>>> On Jan 7, 2022, at 2:53 AM, Ali Lloyd via use-livecode 
>>>  wrote:
>>> 
>>> Many of you will no doubt already be addicted to the game 'Wordle' (if not,
>>> prepare to be: https://www.powerlanguage.co.uk/wordle/) - the only problem
>>> with it is that you only get one per day to solve. So I have taken the
>>> liberty of making an unlimited version (in LC of course)
>>> https://alilloyd.livecodehosting.com/wordle/wordle.html
>>> ___
>>> use-livecode mailing list
>>> use-livecode@lists.runrev.com
>>> Please visit this url to subscribe, unsubscribe and manage your 
>>> subscription preferences:
>>> http://lists.runrev.com/mailman/listinfo/use-livecode
>> 
>> 
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription 
>> preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


___
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: Wordle

2022-01-07 Thread Craig Newman via use-livecode
Ali.

Thanks.

I am joining a support group to help me stop playing, and get back to Scrabble.

But why limit the lexicon to so few words? Even TWL has over 8000 five-letter 
words, and SOWPODS many more.

Craig

> On Jan 7, 2022, at 10:37 AM, Roger Guay via use-livecode 
>  wrote:
> 
> Very nice! Thank you Ali
> 
> Roger
> 
>> On Jan 7, 2022, at 2:53 AM, Ali Lloyd via use-livecode 
>>  wrote:
>> 
>> Many of you will no doubt already be addicted to the game 'Wordle' (if not,
>> prepare to be: https://www.powerlanguage.co.uk/wordle/) - the only problem
>> with it is that you only get one per day to solve. So I have taken the
>> liberty of making an unlimited version (in LC of course)
>> https://alilloyd.livecodehosting.com/wordle/wordle.html
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription 
>> preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


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


Re: IDE behaviour MacOS

2022-01-05 Thread Craig Newman via use-livecode
Hi.

Do you mean sliders and scrollbars are missing from the tools palette?  And an 
Answer dialog appears BEHIND a stack

Cannot imagine any of this. I am on a Mac. What version OS?

Craig

> On Jan 4, 2022, at 12:35 PM, General 2018 via use-livecode 
>  wrote:
> 
> Hi,
> 
> On MacOS, If I click on a stack - Livecode loads but in IDE some stack slide 
> buttons go missing and answer dialogs go hidden behind main stack.
> All else seems to work.
> 
> If I open Livecode and then open the stack all is good.
> 
> On Windows no issues either way.
> 
> 
> Regards Camm
> ___
> 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: Open socket on start up and can't close

2021-12-17 Thread Craig Newman via use-livecode
Robert.

"I have epsiTalk under Livecode.”

Whaaat?? How much do you want for it? I would love to be able to talk to other 
running LC machines with a skillset that I already have. 

When I first picked up LC, I immediately tested “send to program” (a command in 
LC, as it ought to be, not a keyword(!)) to another Mac running LC.  It did not 
work, as others have verified, even though it is still listed in the dictionary 
without comment. I played around with sockets about 8 years ago, and got the 
hang of them, but I miss the package of gadgetry that EpsiTalk offered.

So, um, how much does EpsiTalk for LC cost??

Craig

> On Dec 17, 2021, at 1:51 PM, RobEppich via use-livecode 
>  wrote:
> 
>  I have epsiTalk under 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: Smile for Christmas.

2021-12-17 Thread Craig Newman via use-livecode
Welsh and Gaelic both translate the same.

Heather. What is the difference? Is it a Scotland thing?

Craig

> On Dec 17, 2021, at 1:01 PM, J. Landman Gay via use-livecode 
>  wrote:
> 
>> Beth ydych chi'n ei olygu, fy ffrind? mae'r Gymraeg yn iaith hyfryd. Gyda 
>> dim ond y nifer cywir o lafariaid.

___
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: Smile for Christmas.

2021-12-17 Thread Craig Newman via use-livecode
Ali.

As I am fond of saying, "Americans expect everyone else in the world to learn 
our language, as we refuse to learn theirs”.

Same with the Scrabble lexicon; CSW is rather larger. Two different dictionary 
suites between us and the planet.  We are smug about that.

Craig

> On Dec 17, 2021, at 9:30 AM, Ali Lloyd via use-livecode 
>  wrote:
> 
> Another super-useful and relevant scrabble word is EUOUAE, one of the
> charmingly monikered 'vowel dumps'. Unfortunately not available in TWL so
> only for UK scrabble play!
> 
> On Fri, 17 Dec 2021 at 14:08, Craig Newman via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> 
>> I play a lot of scrabble. One of the most endearing short words (Scrabble
>> is ALL about short words)  in both the English and American lexicons is
>> “CWM”, which is a forest hollow, is Welsh, and validates the old saw: “A,
>> E, I, O, U, and sometimes Y and W”.
>> 
>> Craig
>> 
>>> On Dec 17, 2021, at 7:57 AM, Heather Laine via use-livecode <
>> use-livecode@lists.runrev.com> wrote:
>>> 
>>> Beth ydych chi'n ei olygu, fy ffrind? mae'r Gymraeg yn iaith hyfryd.
>> Gyda dim ond y nifer cywir o lafariaid.
>>> 
>>> I love how the word for "vowels" is almost entirely made up of vowels.
>>> 
>>> Which brings me to my favourite Welsh word. For microwave. Popty ping.
>> Ok so its colloquial and only used in the south valleys "Wenglish" but it's
>> a great word.
>>> 
>>> Have a wonderful Christmas/New Year/Solstice/Holiday of your choice
>> season. Don't let my frivolous response to this thread draw you off the
>> straight and narrow course of purely and only discussing LiveCode on this
>> list. Or even cod byw.
>>> 
>>> Nadolig Hapus!
>>> 
>>> Heather
>>> 
>>> Customer Services Manager
>>> LiveCode Ltd
>>> www.livecode.com
>>> 
>>> 
>>> 
>>>> On 17 Dec 2021, at 06:14, Pi Digital via use-livecode <
>> use-livecode@lists.runrev.com> wrote:
>>>> 
>>>> 
>>>>> I will donate "aluminium" for them. I don't know where they got that.
>>>> 
>>>> Sir Humphry Davy, the same one responsible for the confusion in the
>> term/name. So, the same place as our American cousins.
>>>> 
>>>>> Oh, and don't forget Wales. They only have one sorta vowel, "y", and
>> they make do with random consonants when they run short.
>>>> They use a, e, o, u and I. W and Y are also considered vowels. They
>> don’t use K, Q, V or Z  Double L, D, F as well as ch, ph, rh, th and ng all
>> make consonant sounds. 29 ‘letters’ in total with 7 vowels.
>>>> 
>>>> But I get that you were only jesting ;)
>>>> ___
>>>> 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


___
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: Smile for Christmas.

2021-12-17 Thread Craig Newman via use-livecode
I play a lot of scrabble. One of the most endearing short words (Scrabble is 
ALL about short words)  in both the English and American lexicons is “CWM”, 
which is a forest hollow, is Welsh, and validates the old saw: “A, E, I, O, U, 
and sometimes Y and W”.

Craig

> On Dec 17, 2021, at 7:57 AM, Heather Laine via use-livecode 
>  wrote:
> 
> Beth ydych chi'n ei olygu, fy ffrind? mae'r Gymraeg yn iaith hyfryd. Gyda dim 
> ond y nifer cywir o lafariaid.
> 
> I love how the word for "vowels" is almost entirely made up of vowels.
> 
> Which brings me to my favourite Welsh word. For microwave. Popty ping. Ok so 
> its colloquial and only used in the south valleys "Wenglish" but it's a great 
> word.
> 
> Have a wonderful Christmas/New Year/Solstice/Holiday of your choice season. 
> Don't let my frivolous response to this thread draw you off the straight and 
> narrow course of purely and only discussing LiveCode on this list. Or even 
> cod byw.
> 
> Nadolig Hapus!
> 
> Heather
> 
> Customer Services Manager
> LiveCode Ltd
> www.livecode.com
> 
> 
> 
>> On 17 Dec 2021, at 06:14, Pi Digital via use-livecode 
>>  wrote:
>> 
>> 
>>> I will donate "aluminium" for them. I don't know where they got that.
>> 
>> Sir Humphry Davy, the same one responsible for the confusion in the 
>> term/name. So, the same place as our American cousins. 
>> 
>>> Oh, and don't forget Wales. They only have one sorta vowel, "y", and they 
>>> make do with random consonants when they run short.
>> They use a, e, o, u and I. W and Y are also considered vowels. They don’t 
>> use K, Q, V or Z  Double L, D, F as well as ch, ph, rh, th and ng all make 
>> consonant sounds. 29 ‘letters’ in total with 7 vowels. 
>> 
>> But I get that you were only jesting ;)
>> ___
>> 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: open socket on start up and can't close

2021-12-16 Thread Craig Newman via use-livecode
Curry.

Surely you are right.

I just remember when HC was on the ropes, and wish that the LC Forum was so 
full of posts that I never have to do my actual job. I can just kibitz there 
all day long. It would mean that the world finally gets what LC offers.

Craig

> On Dec 16, 2021, at 11:16 AM, Curry Kenworthy via use-livecode 
>  wrote:
> 
> 
> Craig:
> 
> > I have never understood how anyone working with LC,
> > at any level of expertise, can lurk silently either here
> > or on the Forum, and never ask a question, comment on something,
> > complain or praise, whatever.
> 
> Understanding is a valuable commodity!
> 
> Not everyone is extrovert/expulsive.
> Not all have the time or inclination.
> And the list goes on ... different strokes.
> 
> None of which necessarily mean less interest
> or enthusiasm for LC. Many a quiet sage
> 
> Interesting backstory too; thanks for sharing.
> 
> Best wishes,
> 
> Curry Kenworthy
> 
> Custom Software Development
> "Better Methods, Better Results"
> Christian LiveCode Training and Consulting
> http://livecodeconsulting.com/
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


___
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: open socket on start up and can't close

2021-12-16 Thread Craig Newman via use-livecode
> "A few regulars - but many others who work/lurk! :)"

I have never understood how anyone working with LC, at any level of expertise, 
can lurk silently either here or on the Forum, and never ask a question, 
comment on something, complain or praise, whatever. Checking these two venues 
is the first thing I do in the morning.

Craig

> On Dec 16, 2021, at 9:02 AM, Craig Newman via use-livecode 
>  wrote:
> 
> Curry.
> 
> "A few regulars - but many others who work/lurk! :)"
> 
> I see that.
> 
> Robert Eppich, back in the ’90’s, way before sockets, sold a product called 
> “Epsitalk”. This was HC based, and essentially used the now deprecated “send 
> message to program”. This was listed as a keyword, not a command, in the HC 
> lexicon. I never understood that.
> 
> Anyway, I still have a peer-to-peer collection of OS9 Macs that run part of 
> my business, used daily. The only reason I have not migrated that stuff to LC 
> is that I have played with sockets only just a little, and do not want to fix 
> what is not broken. My LC world is rich and busy enough with the other things 
> I do with it.
> 
> So Robert, glad to see you still in the xTalk world...
> 
> Craig
> 
>> On Dec 15, 2021, at 11:58 PM, Curry Kenworthy via use-livecode 
>>  wrote:
>> 
>> 
>> Craig:
>> 
>>> ROBERT EPPICH?
>> 
>> More people read this list than anyone might assume.
>> A few regulars - but many others who work/lurk! :)
>> 
>> Best wishes,
>> 
>> Curry Kenworthy
>> 
>> Custom Software Development
>> "Better Methods, Better Results"
>> Christian LiveCode Training and Consulting
>> http://livecodeconsulting.com/
>> 
>> 
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription 
>> preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
> 
> 
> ___
> 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: open socket on start up and can't close

2021-12-16 Thread Craig Newman via use-livecode
Curry.

"A few regulars - but many others who work/lurk! :)"

I see that.

Robert Eppich, back in the ’90’s, way before sockets, sold a product called 
“Epsitalk”. This was HC based, and essentially used the now deprecated “send 
message to program”. This was listed as a keyword, not a command, in the HC 
lexicon. I never understood that.

Anyway, I still have a peer-to-peer collection of OS9 Macs that run part of my 
business, used daily. The only reason I have not migrated that stuff to LC is 
that I have played with sockets only just a little, and do not want to fix what 
is not broken. My LC world is rich and busy enough with the other things I do 
with it.

So Robert, glad to see you still in the xTalk world...

Craig

> On Dec 15, 2021, at 11:58 PM, Curry Kenworthy via use-livecode 
>  wrote:
> 
> 
> Craig:
> 
> > ROBERT EPPICH?
> 
> More people read this list than anyone might assume.
> A few regulars - but many others who work/lurk! :)
> 
> Best wishes,
> 
> Curry Kenworthy
> 
> Custom Software Development
> "Better Methods, Better Results"
> Christian LiveCode Training and Consulting
> http://livecodeconsulting.com/
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


___
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: open socket on start up and can't close

2021-12-15 Thread Craig Newman via use-livecode
ROBERT EPPICH?

If you are the person I think you are, do you know that I still manage a dozen 
OS9 Macs on a network using Hypercard and Epsitalk?

Do you have other posts on either the LiveCode forums or this use-list? I have 
never seen your name...

Craig Newman

> On Dec 15, 2021, at 2:26 PM, RobEppich via use-livecode 
>  wrote:
> 
> Downloaded and run Livecode 9.6.5, type “put the opensockets” and a socket is 
> open, 65463. Close socket 65463 and put the opensockets again and result is 
> 65466.
> 
> Close the socket that is opened on startup always results in another socket 
> being opened. This was not the case in 9.6.3 and previous versions. Can 
> someone verify this?
> 
> Also have checked 10.0 dp 1 and same issue is there.
> 
> Thanks
> Rob Eppich
> ___
> 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: Forum Down?

2021-12-10 Thread Craig Newman via use-livecode
OK. All back to normal, Funny how annoyed I get when a modern miracle does not 
quite perform the way I want it to.

Craig

> On Dec 9, 2021, at 10:14 AM, Klaus major-k via use-livecode 
>  wrote:
> 
> Hi Craig,
> 
>> Am 09.12.2021 um 16:11 schrieb Craig Newman via use-livecode 
>> :
>> 
>> Could not connect as of last evening.
> 
> nope, alive and running!
> Just tested.
> 
>> Craig
> 
> Best
> 
> Klaus
> 
> --
> Klaus Major
> https://www.major-k.de
> https://www.major-k.de/bass
> kl...@major-k.de
> 
> 
> ___
> 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: Forum Down?

2021-12-09 Thread Craig Newman via use-livecode
Hmmm.

Still cannot. Will wait a while and see…

Craig

> On Dec 9, 2021, at 10:14 AM, Klaus major-k via use-livecode 
>  wrote:
> 
> Hi Craig,
> 
>> Am 09.12.2021 um 16:11 schrieb Craig Newman via use-livecode 
>> :
>> 
>> Could not connect as of last evening.
> 
> nope, alive and running!
> Just tested.
> 
>> Craig
> 
> Best
> 
> Klaus
> 
> --
> Klaus Major
> https://www.major-k.de
> https://www.major-k.de/bass
> kl...@major-k.de
> 
> 
> ___
> 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


Forum Down?

2021-12-09 Thread Craig Newman via use-livecode
Could not connect as of last evening.

Craig

___
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


Fwd: screen resolution and stack height

2021-12-02 Thread Craig Newman via use-livecode
Here is a neat article:

https://www.studiobinder.com/blog/what-is-4-3-aspect-ratio/

> Begin forwarded message:
> 
> From: Craig Newman via use-livecode 
> Subject: Re: screen resolution and stack height
> Date: December 2, 2021 at 9:24:41 AM EST
> To: How to use LiveCode 
> Cc: Craig Newman 
> Reply-To: How to use LiveCode 
> 
> Hi.
> 
> The 4:3 ratio, unless I completely do not understand any of this, is not 
> pertinent to a desktop app. It was for viewing film and TV back in the day 
> when there was much less flexibility in display screen technology. Much less. 
> The monitors I see around me are all anything but 4:3. I have one rotated 90 
> degrees and it is about 4:2.
> 
> So what prevents you from making your card size whatever you want? In other 
> words, why worry about this at all?
> 
> Craig
> 
>> On Dec 1, 2021, at 2:26 PM, David Glasgow via use-livecode 
>>  wrote:
>> 
>> Hi folks,
>> 
>> I have been developing a desktop stack at 1024×760 for a while.  Vertical 
>> space is becoming increasingly cramped, and I need a bit more.  I reckon 40 
>> pixels would do it.
>> 
>> Obviously that would break the 4:3 ratio.  So am I better reconfiguring for 
>> a completely different screen ratio (if so, which), or just setting the 
>> stack height to what I need?  I remember 1280×800 was common for quite a 
>> while, but is it still?  
>> 
>> I Googled about a bit, but the interweb was full of contradictory advice.  
>> (Imagine that!)
>> 
>> 
>> Best Wishes,
>> 
>> David Glasgow
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription 
>> preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

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


Fwd: screen resolution and stack height

2021-12-02 Thread Craig Newman via use-livecode
Sloppy. My ratio is approx. 2:4

> Begin forwarded message:
> 
> From: Craig Newman via use-livecode 
> Subject: Re: screen resolution and stack height
> Date: December 2, 2021 at 9:24:41 AM EST
> To: How to use LiveCode 
> Cc: Craig Newman 
> Reply-To: How to use LiveCode 
> 
> Hi.
> 
> The 4:3 ratio, unless I completely do not understand any of this, is not 
> pertinent to a desktop app. It was for viewing film and TV back in the day 
> when there was much less flexibility in display screen technology. Much less. 
> The monitors I see around me are all anything but 4:3. I have one rotated 90 
> degrees and it is about 4:2.
> 
> So what prevents you from making your card size whatever you want? In other 
> words, why worry about this at all?
> 
> Craig
> 
>> On Dec 1, 2021, at 2:26 PM, David Glasgow via use-livecode 
>>  wrote:
>> 
>> Hi folks,
>> 
>> I have been developing a desktop stack at 1024×760 for a while.  Vertical 
>> space is becoming increasingly cramped, and I need a bit more.  I reckon 40 
>> pixels would do it.
>> 
>> Obviously that would break the 4:3 ratio.  So am I better reconfiguring for 
>> a completely different screen ratio (if so, which), or just setting the 
>> stack height to what I need?  I remember 1280×800 was common for quite a 
>> while, but is it still?  
>> 
>> I Googled about a bit, but the interweb was full of contradictory advice.  
>> (Imagine that!)
>> 
>> 
>> Best Wishes,
>> 
>> David Glasgow
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription 
>> preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

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


Re: screen resolution and stack height

2021-12-02 Thread Craig Newman via use-livecode
Hi.

The 4:3 ratio, unless I completely do not understand any of this, is not 
pertinent to a desktop app. It was for viewing film and TV back in the day when 
there was much less flexibility in display screen technology. Much less. The 
monitors I see around me are all anything but 4:3. I have one rotated 90 
degrees and it is about 4:2.

So what prevents you from making your card size whatever you want? In other 
words, why worry about this at all?

Craig

> On Dec 1, 2021, at 2:26 PM, David Glasgow via use-livecode 
>  wrote:
> 
> Hi folks,
> 
> I have been developing a desktop stack at 1024×760 for a while.  Vertical 
> space is becoming increasingly cramped, and I need a bit more.  I reckon 40 
> pixels would do it.
> 
> Obviously that would break the 4:3 ratio.  So am I better reconfiguring for a 
> completely different screen ratio (if so, which), or just setting the stack 
> height to what I need?  I remember 1280×800 was common for quite a while, but 
> is it still?  
> 
> I Googled about a bit, but the interweb was full of contradictory advice.  
> (Imagine that!)
> 
> 
> Best Wishes,
> 
> David Glasgow
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


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


Re: variable window not applying changes

2021-11-24 Thread Craig Newman via use-livecode
@Bernd.

" double-click on the icon in the varialble line:”

What icon? Do you mean the small box-with-arrow icon that appears when a 
multi-line variable is present in the lower list?

@James. 

I am on a Mac, but have never had a change made in the external variable window 
(certainly a stack) that did not make a change that did not stick.

Craig

> On Nov 24, 2021, at 2:15 PM, Niggemann, Bernd via use-livecode 
>  wrote:
> 
>  double-click on the icon in the varialble line:

___
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: Annoying pop-up message

2021-11-18 Thread Craig Newman via use-livecode
Or:

https://forums.livecode.com/viewtopic.php?f=9=35607=203599=lipo#p203599
 


Craig

> On Nov 18, 2021, at 4:48 AM, matthias rebbe via use-livecode 
>  wrote:
> 
> This can be caused by an installed program.
> 
> Here for example someone is mentioning that the program BOINC caused that 
> popup message in his case.
> https://discussions.apple.com/thread/252157812
> 
> Do you have Xcode or the command. line tools installed at all? Or is a 
> version of the command line tools selected that is not installed anymore on 
> your computer?
> 
> In a first step you could open Xcode, open Preferences and under Locations 
> you could select a version of the installed command line tools.  Does that 
> fix your problem?
> 
> Regards
> Matthias
> 
>> Am 18.11.2021 um 06:16 schrieb David Squance via use-livecode 
>> :
>> 
>> This may be off-topic, but I don’t know if it’s related to my Mac OS or LC. 
>> Lately I get a periodic pop-up that says “The ‘C++filt’ command requires the 
>> command line developer tools. Would you like to install the tools now?” I 
>> have no knowledge of doing anything that uses the above command. I’m using 
>> the last version of LC prior to the big change away from freebies and 
>> haven’t attempted any standalone building for some time. I’m running Big Sur 
>> on a MacBook Air.
>> Dave
>> ___
>> 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: Annoying pop-up message

2021-11-18 Thread Craig Newman via use-livecode
Is this anything like the “Lipo” dialogs I get now every time I make a 
standalone? There is a thread on the Forum about this:

https://forums.livecode.com/search.php?keywords=lipo 


Craig


> On Nov 18, 2021, at 4:48 AM, matthias rebbe via use-livecode 
>  wrote:
> 
> This can be caused by an installed program.
> 
> Here for example someone is mentioning that the program BOINC caused that 
> popup message in his case.
> https://discussions.apple.com/thread/252157812
> 
> Do you have Xcode or the command. line tools installed at all? Or is a 
> version of the command line tools selected that is not installed anymore on 
> your computer?
> 
> In a first step you could open Xcode, open Preferences and under Locations 
> you could select a version of the installed command line tools.  Does that 
> fix your problem?
> 
> Regards
> Matthias
> 
>> Am 18.11.2021 um 06:16 schrieb David Squance via use-livecode 
>> :
>> 
>> This may be off-topic, but I don’t know if it’s related to my Mac OS or LC. 
>> Lately I get a periodic pop-up that says “The ‘C++filt’ command requires the 
>> command line developer tools. Would you like to install the tools now?” I 
>> have no knowledge of doing anything that uses the above command. I’m using 
>> the last version of LC prior to the big change away from freebies and 
>> haven’t attempted any standalone building for some time. I’m running Big Sur 
>> on a MacBook Air.
>> Dave
>> ___
>> 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: Count Up Timer?

2021-11-02 Thread Craig Newman via use-livecode
When I was very young I used to run a gadget like this on a field with styled 
text:

on mouseUp
  get fld 1
  repeat for each char tChar in it
put numToChar(charToNum(tChar)) after accum
  end repeat
  put accum into fld 2
end mouseUp

But you do not have to do all that:

on mouseUp
  get fld 1
  put it into fld 2
end mouseUp

I suppose when you put styled text into a variable, unless you play with the 
HTMLText, only plain text can be held there.

Craig

> On Nov 2, 2021, at 1:27 PM, Sean Cole via use-livecode 
>  wrote:
> 
> Tom,
> It is.
> I would copy it into TextEdit (Plaintext), Atom or BBEdit first to strip
> any formatting properly, then copy paste from there to mail. :)
> It happens. Nothing to worry about and only a minor inconvenience.
> Good code, though :)
> Sean
> 
> 
> On Tue, 2 Nov 2021 at 17:14, Tom Glod via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> 
>> Oh man ..I forgot about the formatting thing.
>> In my client it shows up formatted with color.
>> Does it work ok if it is pasted plain text?
>> 
>> On Tue, Nov 2, 2021 at 12:08 PM Mark Wieder via use-livecode <
>> use-livecode@lists.runrev.com> wrote:
>> 
>>> On 11/2/21 8:48 AM, Craig Newman via use-livecode wrote:
>>>> Mark.
>>>> 
>>>> “... unless the person was born after 1 January 1970."
>>>> 
>>>> Check out the thread “When was the big bang?” on the forum:
>>>> 
>>>> 
>>> 
>> https://forums.livecode.com/viewtopic.php?f=9=26619=138530=big+bang#p138530
>>> 
>>> LOL. "one bit for (the) apple."
>>> 
>>> --
>>>  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
>>> 
>> 
>> 
>> --
>> Tom Glod
>> Founder & Developer
>> MakeShyft R.D.A (www.makeshyft.com)
>> Mobile:647.562.9411
>> ___
>> 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: Count Up Timer?

2021-11-02 Thread Craig Newman via use-livecode
Mark.

“... unless the person was born after 1 January 1970."

Check out the thread “When was the big bang?” on the forum:

https://forums.livecode.com/viewtopic.php?f=9=26619=138530=big+bang#p138530

Craig

> On Nov 2, 2021, at 11:43 AM, Mark Wieder via use-livecode 
>  wrote:
> 
> On 11/2/21 7:33 AM, Curry Kenworthy via use-livecode wrote:
> 
>> A forum is handy for searches,
>> so a nice place to visit now and then.
>> But I wouldn't want to live there! :D
> 
> Heh. My thoughts as well.
> 
>> > It would take a lot of work to reformat the OP’s code example
>> > into something workable in the SE.
>> I thought the OP was Dan, but you mean Tom's function?
>> Just a matter of not pasting **styled** text for code.
>> Even then, it's easily put right with a few commands.
>> Mark's example is easy to follow too.
> 
> But I think neither of these will solve the OP's question unless the person 
> was born after 1 January 1970.
> 
> -- 
> 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: Count Up Timer?

2021-11-02 Thread Craig Newman via use-livecode
Sheesh.

This is just another great example why the Forum is so much better a venue than 
this list. It would take a lot of work to reformat the OP’s code example into 
something workable in the SE.

Craig

> On Nov 1, 2021, at 6:29 PM, Mark Smith via use-livecode 
>  wrote:
> 
> You want the convert command. convert 1605553200 from seconds to dateitems 
> gives you 2020,11,16,19,0,0,2 (lookup dateitems). convert the date && the 
> time to seconds gives the date/time right now = 1635805440, then do the same 
> as step one with that gives you 2021,11,1,22,24,0,2. Do a little subtraction 
> and you get 1 yr, 0 months, 15 days, 3 hours, 24 mins, 0 secs. 
> 
>> On Nov 1, 2021, at 9:45 PM, Dan Friedman via use-livecode 
>>  wrote:
>> 
>> Anyone ever done a count up timer?   For example, if we supply the seconds 
>> of 1605553200, we want to display the number of years, months, days, hours, 
>> minutes and seconds since that time.   For example, "How long have you been 
>> alive?".   This needs to be precise – need to account for leap years, days 
>> in month, etc.
>> 
>> Save me!!   :)
>> 
>> -Dan
>> 
>> ___
>> 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: Message Tracer/IDE Crash Recipes

2021-11-01 Thread Craig Newman via use-livecode
Curry.

I never minimize the SE, if that is the required  starting point of the bug.

Craig

> On Oct 29, 2021, at 10:48 PM, Curry Kenworthy via use-livecode 
>  wrote:
> 
> 
> Craig:
> 
> > The project will run fine for months, in constant use,
> > but then crash. Not reproducible as far as I can tell.
> 
> > Just crashed, Again, working in the IDE,
> > SE open, fixing and enhancing.
> 
> Here's another bug that may "hint" at similar IDE behavior,
> although it doesn't give me a crash:
> 
> Bug 22597 - Invisible Menu bug
> https://quality.livecode.com/show_bug.cgi?id=22597
> 
> That bug also happens when SE is open, or minimized.
> It causes menus to be invisible but still functioning.
> 
> It can happen from a few minutes to a few days
> of an LC IDE session. Very unpredictable.
> 
> That reminds me of the hard-to-recipe crash bugs
> that also happen after a "random" amount of time.
> 
> Best wishes,
> 
> Curry Kenworthy
> 
> Custom Software Development
> "Better Methods, Better Results"
> Christian LiveCode Training and Consulting
> http://livecodeconsulting.com/
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


___
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: Message Tracer

2021-10-29 Thread Craig Newman via use-livecode
Curry.

Just crashed, Again, working in the IDE, SE open, fixing and enhancing. Saved 
fairly recently, so only a minor hassle.

Craig

> On Oct 29, 2021, at 12:28 PM, Richard Gaskin via use-livecode 
>  wrote:
> 
> Bob Sneidar wrote:
> 
> > Has anyone written something that will trace the flow of a command
> > or procedure and create some kind of rudimentary flow diagram? It
> > can be text based something like:
> >
> > stack "Main Form"
> > Openstack
> > setSubscriptions
> >  subGetMainData, getMainData
> >  subSetMainGrids, setMainGrids
> > broadcast subGetMainData
> > broadcast subSetMainGrids
> >
> > etc.
> 
> Yes. 4W Flight Recorder provides a display for logging messages and 
> subsequent handler calls, indented for readability and with relative 
> performance metrics.
> 
> Double-clicking a line in the display opens the script where that handler is 
> defined, and the list can also be saved to a file.
> 
> Bonus: messages logged can be filtered, with preset filters for IDE and other 
> tools.
> 
> You can download 4W Flight Recorder from within the Stacks section of 
> LiveNet, or directly at this URL:
> http://fourthworld.net/revnet/devolution/4W_FlightRecorder.livecode.gz
> 
> -- 
> Richard Gaskin
> Fourth World Systems
> Software Design and Development for the Desktop, Mobile, and the Web
> 
> ambassa...@fourthworld.comhttp://www.FourthWorld.com
> 
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


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


Re: Message Tracer/IDE Crash Recipes

2021-10-29 Thread Craig Newman via use-livecode
Curry.

It always happens in the IDE when I am working on my largest desktop project, 
an eight year old mainStack that contains six substacks. I work on that project 
only on my main office computer. Invariably I am fooling around between the SE 
and the mainStack.

It has never happened when I am working on any other stack. I never work on 
that particular project on any other machine I use, and have never had a crash 
on any of those others.

So it is limited to one machine and one project. I do have a large second 
monitor oriented vertically that holds only the SE. I use no fancy stuff, no 
databases, dataGrids, external files. I use one plug-in that contains a few 
shortcuts, like being able to right-click and switch between the browse and 
pointer tool. 

The project will run fine for months, in constant use, but then crash. Not 
reproducible as far as I can tell.

Craig

> On Oct 28, 2021, at 9:01 PM, Curry Kenworthy via use-livecode 
>  wrote:
> 
> 
> Craig:
> 
> > My one entry into the "bug” poll was to complain
> > about random crashes of LC itself now and then.
> > Not likely to have that solved anytime soon.
> 
> It could be! There is de-crashing LC progress, but it's slow.
> This year I reported a crash/hang pair, and that's fixed now.
> 
> The problem is a solid recipe, as I'm sure you know.
> Searching for "crash" in quality.livecode.com
> reveals a bunch of AWAITING_FOLLOW_UP and NOT_REPRODUCED.
> 
> For a bug that is unusually difficult to recipe,
> it requires collaboration (or etc) to pin it down.
> That in turn requires some ... discussion.
> 
> (Encouraging that discussion would be in LC's own interest;
> customers put a lot of unpaid hard work into bug filing efforts.)
> 
> I'm taking a rare opportunity to catch up here on the list
> after finally getting over COVID (man, it feels good!)
> but must dive back into my own client work and addons updates.
> 
> However, LC bugs impact both client work and addons updates too,
> so it's all related. LC bug time is mandatory either way!
> There's no getting around it.
> 
> The survey made me realize I need better LC bug tracking tools,
> so I can stay on top of the old and new ones, plus rank them.
> And follow up on any reports that have lapsed.
> 
> So I'm curious: Craig, what was the nature of your crash?
> (Or the bug # / discussion link, if that applies.)
> I'll keep it in mind, to see if I can help eventually
> with the pesky recipes or crash log data.
> May take a while, but we can pin down more of these.
> 
> Best wishes,
> 
> Curry Kenworthy
> 
> Custom Software Development
> "Better Methods, Better Results"
> Christian LiveCode Training and Consulting
> http://livecodeconsulting.com/
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


___
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: Message Tracer

2021-10-28 Thread Craig Newman via use-livecode
Message Watcher? AHA.

My one entry into the "bug” pollI was to complain about random crashes of LC 
itself now and then. Not likely to have that solved anytime soon.  But I am 
tempted to categorizes as a bug a sorely missing feature of the message watcher:

In the Forum 
"https://forums.livecode.com/viewtopic.php?f=6=35496=207822=message+watcher#p207822
 
”

This missing feature oftentimes cripples the usefulness of the MW, and that 
ought to be thought of as a bug.

HA

Craig


> On Oct 28, 2021, at 1:17 PM, Bob Sneidar via use-livecode 
>  wrote:
> 
> Yes, but the message watcher is way too verbose. I do not need every system 
> message, only the ones called by my own code, and I need to at least be able 
> to discern when procedures exit. 
> 
> My reason is that I have 15+ modules that all need to use  the publish and 
> subscribe method I am implementing, and it is a LOT easier to grok a summary 
> of handlers as in the format below to ensure I am standardizing things in all 
> the modules. 
> 
> I thought about using a common behavior, but each module has to subscribe to 
> only the messages it needs. The messages are almost all querys of a database 
> and populating of datagrids, which I am trying to synchronize throughout the 
> application without repeatedly querying the same data over and over again. To 
> simplify things, each module's subscriptions and the handlers they call are 
> located in the respective card script. Opening the card sets up the 
> subscriptions for that module, and closing the card clears them. 
> 
> Bob S
> 
> 
>> On Oct 28, 2021, at 10:07 , J. Landman Gay via use-livecode 
>>  wrote:
>> 
>> Like LC's Message Watcher?
>> 
>> --
>> Jacqueline Landman Gay | jac...@hyperactivesw.com
>> HyperActive Software | http://www.hyperactivesw.com
>> On October 28, 2021 11:28:34 AM Bob Sneidar via use-livecode 
>>  wrote:
>> 
>>> Has anyone written something that will trace the flow of a command or 
>>> procedure and create some kind of rudimentary flow diagram? It can be text 
>>> based something like:
>>> 
>>> stack "Main Form"
>>> Openstack
>>> setSubscriptions
>>>  subGetMainData, getMainData
>>>  subSetMainGrids, setMainGrids
>>> broadcast subGetMainData
>>> broadcast subSetMainGrids
>>> 
>>> etc.
>>> 
>>> Bob S
>>> 
>>> 
>>> ___
>>> 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: Mudslinging and consequences - a change to our policy

2021-10-28 Thread Craig Newman via use-livecode
There are an infinite number of infinities, and many can be ordered in terms of 
their “size”. The problem is you need an infinite number of Alephs to talk 
about them all. The real question is can one talk about all those infinites in 
an Aleph null number of ticks?

Craig

> On Oct 28, 2021, at 1:21 PM, doc hawk via use-livecode 
>  wrote:
> 
> 
> On Oct 28, 2021, at 9:47 AM, Rick Harrison via use-livecode 
>  wrote:
>> 
>> The following article will really get your thinking about infinity:
> 
> I took my Set Theory from Halmos himself.  At the time, I knew he must be a 
> major figure, as there was an “with apologies to Halmos” in the introduction.
> 
> I just din’t realize *how* big until years later.
> 
> I mentioned it in a graduate math class (stochastic calculus), and the entire 
> room, including the professor, simply stopped and stared.
> 
> But the various infinities coming from him were one of the “drinking from a 
> firehose” experiences . . .
> 
> 
> ___
> 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: Accessing array custom properties

2021-10-26 Thread Craig Newman via use-livecode
Hi.

An array variable is just a variable, it is not a property. You cannot “make” 
one into the other.

So, basically, put the pArrayName[pElementName]  of button “button” is just 
syntax that does not exist in the lexicon, for the above reason.

Craig

> On Oct 25, 2021, at 11:18 PM, Neville Smythe via use-livecode 
>  wrote:
> 
> Is there a logic behind the following?
> 
> I want the values of a custom property which is an array: to take a specific 
> example the dropShow of button “button” and I want  the specific element color
> 
> Of course I can write: put the dropShadow of button “button” into aa; put  
> aa[color]
> 
> Conveniently there is a shortcut : put the dropShadow[color] of button 
> “button” 
> 
> (which I guess would need special coding because there isn’t a property whose 
> name is "dropShadow[color]”; and this doesn’t work for DataGrids - but that’s 
> another question)
> 
> Now I want to use variables so I can script for different properties
> 
> put “color” into pElementName; put “dropShadow” into pArrayName
> 
> 1. This works:put the dropShadow of button “button” into aa; put 
> aa[pElementName]
> 
> 2. And this works:put the pArrayname of button “button” into aa; put 
> aa[pElementName]
> 
> 3. And (conveniently) this works:put the dropShadow[pElementName] of 
> button “button”
> 
> 4. BUT (annoyingly) this fails, giving an empty result: put the 
> pArrayName[pElementName]  of button “button”
> 
> Why? If 3 works, I would have thought the parser would substitute values for 
> all variables before getting the property using  the “special coding”
> 
> Neville
> ___
> 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: Number of items

2021-10-25 Thread Craig Newman via use-livecode
It is indeed a feature, and just requires remembering how LC (and HC before it, 
from the beginning) treat how items are counted.

Craig

> On Oct 25, 2021, at 11:06 AM, Pi Digital via use-livecode 
>  wrote:
> 
> It’s not a bug. It’s a feature. And a welcome one, too. We just have to 
> handle it differently to the way it is for CSVs and DB records. 
> 
> Sean
> 
> 
>> On 25 Oct 2021, at 15:56, Paul Dupuis via use-livecode 
>>  wrote:
>> 
>> On 10/25/2021 10:46 AM, Mike Kerner via use-livecode wrote:
>>> I'm glad we have these sorts of discussions out in the open.
>>> I hope there is not an appeal coming based on the lists that are submitted.
>>> And even though this horse is dead, maybe some day we can have equal rights
>>> for all items, especially the poor, empty ones. For those of you that don't
>>> recall, the number of items in ",1" and the number of items in "1," are not
>>> the same. Database records and CSV's continue to object.
>> 
>> I didn't realize that. What bug number is it in the Livecode Quality Center 
>> Bugzilla database? I'd like to CC myself on the bug.
>> 
>> ___
>> 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: Stack with the same name loop

2021-10-07 Thread Craig Newman via use-livecode
RE: the “purge/save/cancel” thing.

I see this exactly twice whenever I build a standalone for a particular 
project. Even in a new session, if the first thing I do is build a standalone 
from the splash stack, I will twice get a dialog during the process asking me 
the three questions. I always “purge”, and always everything works out fine.

But the only stack I open in that new session is the splash stack itself, 
running the build directly from there. 

The splash stack opens a mainStack in normal operation, and this may have 
something to do with the presentation of the dialog.

Craig

> On Oct 7, 2021, at 9:40 AM, Mark Waddingham via use-livecode 
>  wrote:
> 
> On 2021-10-06 22:30, Mark Wieder via use-livecode wrote:
>> That's what I do as well. Kill, then go do something else for a bit.
>> Reading the code that invokes this dialog (the reloadstack handler in
>> revbackscriptlibrary.livecodescript) isn't much help. It's only the
>> IDE that can't handle this, not the engine.
>> This would all be moot if the IDE used the long id of the stack
>> instead of just the short name of the stack, but that would require
>> work.
> 
> That isn't true - the problem is a lot deeper than that.
> 
> Most 'stack' related engine syntax works with the short name of stacks e.g. 
> defaultStack, topStack, stackFiles.
> 
> The IDE is built using the engine, so has to work within the limitations the 
> engine has.
> 
> Internally the engine references stacks by 'weak handles' (basically pointers 
> which 'know' when the thing they are pointing at has been deleted) - it does 
> not use names... However the way stacks are referenced by script (as 
> mentioned above) do use the short name - to keep things simple.
> 
> Of course it would be possible to add new syntax and such - and it would be 
> possible to update the IDE to use it (and thus the 'irksome' dialog could be 
> removed).
> 
> However, the reality is that, that endeavour (which would be a very large 
> amount of work) would only shift the problem - onto users themselves.
> 
> If user code did not use the new syntax, then chances are they would end up 
> causing really hard to track down issues in their own code due to having two 
> stacks with the same name. This is regardless of whatever resolution order 
> was chosen to resolve conflicts - unless user code also uses unique stack 
> references, there is no choice which would not stop problems from happening.
> 
> I'd like to point out that this is not me copping out here - it is merely 
> pointing out that simplicity does come with restrictions - and as it stands, 
> one of these restrictions (with livecode) is uniquely named stacks.
> 
> I'd further point out that 'critical things having unique name' isn't that 
> rare. For example, you can't have two files with the same name in a folder 
> for example (even though on UNIX systems, every file has an internal unique 
> integer id - the inode number) and you can't have two handlers, variables, 
> methods, types (or any named thing) with the same name (in the same 
> namespace) in any language that I know of.
> 
> So, may I suggest, the problem to solve is to figure out why the dialog which 
> spawned this thread does not work correctly in some circumstances?
> 
> I say some circumstances, because it does work precisely as advertised in a 
> (fresh) IDE after it has been started:
> 
>  1) Create a stack "Foo" - save it as "FooEmpty.livecode" and remove from 
> memory
>  2) Create another stack "Foo" - place a button on it and save it as 
> "FooButton.livecode"
>  3) Load FooEmpty.livecode from the menu - ask to Purge. FooEmpty appears 
> (and FooButton goes)
>  4) Add a tab control to FooEmpty.
>  5) Load FooButton.livecode from the menu - ask to Save, FooEmpty is saved 
> and FooButton appears.
>  6) Load FooEmpty.livecode from the menu - ask to Purge, FooEmpty appears 
> (now with tab control) and FooButton has gone.
> 
> The correct behavior of that dialog is precisely what you would expect from 
> the button names:
> 
>  1) Cancel - the loading of the new stack does not happen.
>  2) Purge - the existing stack of the same name is removed from memory 
> without saving first, and the new stack is loaded.
>  3) Save - the existing stack of the same name is saved and then removed from 
> memory, and the new stack is loaded.
> 
> The effect observed (the looping) could be an interaction with a component in 
> the IDE (which somehow causes the stack which should be being removed to be 
> reloaded), or it could be some code pattern in user stacks which cause much 
> the same problem. In the former case, we need to fix the IDE to be 'purge 
> safe in this case', in the latter case we need to understand the pattern so 
> that we can change the mechanism to not be affected by it.
> 
> Warmest Regards,
> 
> Mark.
> 
> -- 
> Mark Waddingham ~ m...@livecode.com ~ http://www.livecode.com/
> LiveCode: Everyone can create apps
> 
> 

Re: Strange closeStack behavior

2021-10-04 Thread Craig Newman via use-livecode
Hi.

Maybe just before the closeStackRequest line, ask for the topStack. Is it 
possible  the mainStack is somehow in front?

Craig

> On Oct 1, 2021, at 6:22 PM, Bob Sneidar via use-livecode 
>  wrote:
> 
> Hi all. 
> 
> Very strange. I have a substance belonging to a mainstack that has LOTS of 
> other sub stacks. Only on this ONE substack, when I click the close button 
> (the red dot in the upper left of a MacOS window) it asks me if I want to ave 
> the stack, EVEN THOUGH I have a closeStackRequest in the stack script that 
> saves the stack before passing closeStackRequest. 
> 
> If I don't save, or if I do save, the MAINSTACK closes, NOT just the 
> substack! If I cancel nothing happens. 
> 
> What the.??? 
> ___
> 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: Strange script error - pass openStack

2021-09-23 Thread Craig Newman via use-livecode
Hi.

You are getting the error message in the message box?

If I make a new stack and place your handler in the card script, I will indeed 
get an error in the message box if I just invoke “openStack” directly. Of 
course, if I

“send openStack to this card”

all works fine. Placing a red dot should not be pertinent. Placing the handler 
in the stack script works as advertised. I guess I am not clear about what you 
are seeing.

Craig

> On Sep 23, 2021, at 8:31 AM, Curry Kenworthy via use-livecode 
>  wrote:
> 
> 
> Peter:
> 
> > I’ve just tried making a new stack that has:
> 
> > on openStack
> >pass openStack
> > end openStack
> 
> 1. Make sure this openStack is in your first CARD's script.
> 
> > I poked into the script of the stack home.livecodescript
> > and see these lines
> 
> > if the short name of the owner of the target is not "Home" then
> > pass openStack
> > end if
> 
> 2. You (or another open stack) may have done something unusual.
> I'm not 100% convinced you've found the problem yet.
> There are a few inconsistent details in your message,
> plus it seems that LC did not pinpoint the offending code line?
> 
> 3. But the home.livecodescript code could be more robust.
> (Always ensure a target and owner exist before accessing properties.)
> You could QA report that as a possible IDE bug.
> 
> Meanwhile, don't pass openStack and see if you still get an error!
> 
> Best wishes,
> 
> Curry Kenworthy
> 
> Custom Software Development
> "Better Methods, Better Results"
> LiveCode Training and Consulting
> http://livecodeconsulting.com/
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


___
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: IDE line number doesn't update

2021-09-22 Thread Craig Newman via use-livecode
I am on a Mac. Ever since the red dot issue was resolved a few versions ago I 
have seen none of these issues. I go back and forth from a handful of stacks to 
the SE without anything noticeable popping up to bother me. My longest single 
script anywhere is about 2000 lines.

Craig

> On Sep 22, 2021, at 9:08 AM, Curry Kenworthy via use-livecode 
>  wrote:
> 
> 
> Me:
> 
> > Separate LC 9 SE Bugs we have, or had:
> 
> "- Performance and practical script size limit.
> - This one, line # updating.
> - Messed up handler indentation.
> - Disassociation of SE from script's object.
> - SE window disappears if too many tabs.
> - Excessive disk use (for HDD/antivirus)
> - SE confusion about last insertion point/scroll.
> - Weird text hilites in SE."
> 
> ... Also more SE bugs:
> 
> - Messed up drags
> - Clipboard affected by SE editing
> - Invisible menus in stacks while SE open
> - Uncontrollable scrolling
> - Null filter needed when pasting
> - Certain errors do not trigger debugging
> - (Unable to save changes due to above Disassociation)
> - (Hard to set breakpoints due to above line # updating)
> - SE sometimes doesn't notice a copy or paste keystroke
> - "Find in>Docs" will not be noticed by newbies
> - Sometimes either "on" or "end" gets clipped/disappears
> -  (and there are more; this is a few)
> 
> All from memory, haven't rechecked them.
> 
> Best wishes,
> 
> Curry Kenworthy
> 
> Custom Software Development
> "Better Methods, Better Results"
> LiveCode Training and Consulting
> http://livecodeconsulting.com/
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


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