Search found 492 matches
- Wed Feb 28, 2024 1:41 pm
- Forum: HTML5
- Topic: New to HTML
- Replies: 4
- Views: 626
Re: New to HTML
Hi Richmond Great to be in touch again. Got so much help from you in the past!! I think I did not explain properly... I have a stack where I can drop in a text file and it cleans it up for me using the handlers I have written in LiveCode. But I am the only person using LiveCode in my team. Everythin...
- Tue Feb 27, 2024 9:08 pm
- Forum: HTML5
- Topic: New to HTML
- Replies: 4
- Views: 626
New to HTML
Hi all Sorry for my long absence!! I have a stack that I have worked on for years. I now need to run it as a web service rather than a desktop app. Is this now an option? the stack manipulates text using lots of LiveCode and regex. So I need a text file to be sent to it and it will send back a text ...
- Thu Feb 02, 2023 7:09 pm
- Forum: Talking LiveCode
- Topic: Keeping track of time taken by each handler and function
- Replies: 7
- Views: 3070
Re: Keeping track of time taken by each handler and function
Thank you all. I had no idea about any of these tools.
- Wed Feb 01, 2023 6:03 pm
- Forum: Talking LiveCode
- Topic: Keeping track of time taken by each handler and function
- Replies: 7
- Views: 3070
Re: Keeping track of time taken by each handler and function
Thanks Mark. Seems Profiler only in Business edition
- Wed Feb 01, 2023 4:25 pm
- Forum: Talking LiveCode
- Topic: Keeping track of time taken by each handler and function
- Replies: 7
- Views: 3070
Re: Keeping track of time taken by each handler and function
Hi Craig
I have probably 100 or more handlers. Also each handler has other handlers and functions inside. So I am having to put these lines around each handler one by one. So was wondering any way of getting a list of every handler and the time it took to do its job!
Regards
Kaveh
I have probably 100 or more handlers. Also each handler has other handlers and functions inside. So I am having to put these lines around each handler one by one. So was wondering any way of getting a list of every handler and the time it took to do its job!
Regards
Kaveh
- Wed Feb 01, 2023 3:36 pm
- Forum: Talking LiveCode
- Topic: Keeping track of time taken by each handler and function
- Replies: 7
- Views: 3070
Keeping track of time taken by each handler and function
I have a stack with several scripts and many handlers. I want to track taken by each hander and functions in order to see where the bottlenecks are and make them more efficient. I now put these lines around each handler: put the millisecs into ms answer the millisecs - ms but it is labour intensive....
Re: BBEdit
Thanks Jacqueline. Good idea to revert, but wish there was a more elegant way.
Re: BBEdit
Hi all Bit late to the party but I have successfully added the BBEdit .plist file so scripts are colored correctly in BBEdit. I am using script only stacks, so ideal for this use. Here is the problem. I have a main stack that has already loaded the script-only stacks. When I edit externally and save...
- Wed Aug 03, 2022 9:56 am
- Forum: Getting Started with LiveCode - Experienced Developers
- Topic: Modifying field contents with script
- Replies: 24
- Views: 6199
Re: Modifying field contents with script
Richmond:
I will take 100% of blame because:
● I was OP
● I have learnt so much from you over the years.
I will take 100% of blame because:
● I was OP
● I have learnt so much from you over the years.
- Wed Aug 03, 2022 7:16 am
- Forum: Getting Started with LiveCode - Experienced Developers
- Topic: Modifying field contents with script
- Replies: 24
- Views: 6199
Re: Modifying field contents with script
except your 3 fields are not locked! Apologies. They should have been locked! Why do you have the "mouseUp" handler call another handler? Are the two examples just a small pair of snippets of a larger code set? I am keeping it general as it's just a test for a bigger project. In the main project I ...
- Tue Aug 02, 2022 10:53 pm
- Forum: Getting Started with LiveCode - Experienced Developers
- Topic: Modifying field contents with script
- Replies: 24
- Views: 6199
Re: Modifying field contents with script
Hi Craig Great to have this interaction with you after a long time! I take your points about the literal "hello". it was sloppy! Did you see the minimal stack I uploaded? That answers your questions. I have 3 locked fields, yes. And the stack script is: local sFieldClicked on mouseup if word 1 of th...
- Tue Aug 02, 2022 9:48 pm
- Forum: Getting Started with LiveCode - Experienced Developers
- Topic: Modifying field contents with script
- Replies: 24
- Views: 6199
Re: Modifying field contents with script
Hi all Apologies if I was not clear at the start. Please see my original post. Simple case – card has only 1 field 1. User clicks on field 2. Text "hello" is added to the end of the field My simple original script works: put "hello" after char -1 of fld 1 (Simpler to delete "char -1" but I was keepi...
- Tue Aug 02, 2022 3:54 pm
- Forum: Getting Started with LiveCode - Experienced Developers
- Topic: Modifying field contents with script
- Replies: 24
- Views: 6199
Re: Modifying field contents with script
Thanks all and hi Craig... I am familiar with "target". Problem here is that I am passing a message from one handler to another and by the time the second handler starts working the value of target has changed. Here is what I did that worked: put the ID of the target into tID put hello after fld ID ...
- Tue Aug 02, 2022 3:13 pm
- Forum: Getting Started with LiveCode - Experienced Developers
- Topic: Modifying field contents with script
- Replies: 24
- Views: 6199
Re: Modifying field contents with script
OK. But I have several fields and my handler is in the stack script. So I will be clicking in a field that is the target. The script needs to grab the name of that target and modify that field only. This is the principle problem I have – passing the name of a field as a variable and editing only tha...
- Tue Aug 02, 2022 2:53 pm
- Forum: Getting Started with LiveCode - Experienced Developers
- Topic: Modifying field contents with script
- Replies: 24
- Views: 6199
Re: Modifying field contents with script
Sorry I was not clear. I want to achieve what the first script does:
I agree it would be simpler to say
So I want to add text to the contents of the field. I do not need to change the name of the field.
Code: Select all
put "hello" after char -1 of fld 1
Code: Select all
put "hello" after fld 1