Search found 1138 matches

by LCMark
Tue Nov 07, 2023 3:50 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: I have a problem. How can I make the button stop receiving clicks until the action inside it is finished?
Replies: 36
Views: 28974

Re: I have a problem. How can I make the button stop receiving clicks until the action inside it is finished?

The system clock on modern machine is highly accurate - it has to be otherwise a lot of things we rely on day in day out would not work. (By accurate I mean the drift over a course of a period of time between when it is synchronized with an external source is exceptionally small - most systems autom...
by LCMark
Mon Oct 30, 2023 6:16 am
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Array referencing
Replies: 22
Views: 66955

Re: Array referencing

@mwieder: Array literalts [] and {} syntax is new in LC10, dynamic paths have been around a while (I'm tempted to say since before 6.0 but I'm not 100% sure).
by LCMark
Fri Oct 27, 2023 4:31 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Array referencing
Replies: 22
Views: 66955

Re: Array referencing

@stam: So: put [ A, B, C, D, E ] into tPath get tArray[tPath] put tValue into tArray[tPath] Does indeed create an array where: tArray[A][B][C][D][E] = tValue However, the other keys are not empty - they contain the nested arrays. If you assume that A-E (which I was just using as placeholders for arb...
by LCMark
Fri Oct 27, 2023 1:43 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Array referencing
Replies: 22
Views: 66955

Re: Array referencing

@trevix: Heh - my post was a little dense! Perhaps a much shorter way to explain the 'dynamic path' feature is this: get tArray[A][B][C][D][E] put tValue into tArray[A][B][C][D][E] Is equivalent to: put [ A, B, C, D, E ] into tPath get tArray[tPath] put tValue into tArray[tPath] Here you can have as...
by LCMark
Fri Oct 27, 2023 12:03 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Array referencing
Replies: 22
Views: 66955

Re: Array referencing

@trevix: If I understand what you want to do correctly, then you want to be able to access a deeply nested array element differently, based on some condition. To handle such cases, you can pass a 'sequence' as the key of an array which the engine will then use to dynamically descend into the array. ...
by LCMark
Fri Sep 08, 2023 12:01 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Detect internet connectivity
Replies: 26
Views: 14754

Re: Detect internet connectivity

@trevix: I suspect it will be the tsNetClose - you only need to call Init on app startup and close on shutdown (although the latter probably isn't necessary). If you include tsNet in the inclusions in your standalone settings, then tsNet will be init'd on startup anyway I believe as it will also ins...
by LCMark
Wed Sep 06, 2023 9:39 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Can LC be used to produce Progressive Web Apps?
Replies: 5
Views: 3066

Re: Can LC be used to produce Progressive Web Apps?

@KimD: Yes - the LiveCode Web (HTML5) engine could be used to create a PWA. The web engine itself is downloaded and runs entirely client-side - after that the your app controls any remote access via url requests - just as with all the other (native) platform engines. (Indeed the best way to think ab...
by LCMark
Tue Sep 05, 2023 12:37 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Algorithm for deleting files
Replies: 8
Views: 4046

Re: Algorithm for deleting files

@Klaus: You aren't the only one :D
by LCMark
Tue Sep 05, 2023 11:39 am
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Algorithm for deleting files
Replies: 8
Views: 4046

Re: Algorithm for deleting files

@trevix: Assuming these files all sit in their own folder then you can do: command keepRecentFiles pFolder, pCount /* Fetch the list of all files in the specified folder. */ local tFiles put files(pFolder) into tFiles /* The filenames are of the form YYYMMDDHHMMSS_<email>. So set the * the item deli...
by LCMark
Mon Sep 04, 2023 8:33 am
Forum: Announcements
Topic: [ANN] Release LiveCode 10.0.0 DP-6
Replies: 9
Views: 24299

Re: [ANN] Release LiveCode 10.0.0 DP-6

@wsamples / @williamdesmet / @bobcole : Thanks for persevering and getting something to work - I've filed bug https://quality.livecode.com/show_bug.cgi?id=24327 for what I surmise to be the issue from your testing. Essentially, the default web font mappings we provide by default (which only use loca...
by LCMark
Sun Sep 03, 2023 10:18 am
Forum: LiveCode Builder
Topic: Passing a pointer to FileExists()?
Replies: 3
Views: 13612

Re: Passng a pointer to FileExists()?

@Zax: So in this case, the second parameter's pointer indicates that it is a 'out' parameter - i.e. the method writes a value into it on return. Thus you want to bind to it as 'out' rather than 'in': private foreign handler ObjC_NSFolderExistsAtPath(in pFileManager as ObjcId, in pFilename as ObjcId,...
by LCMark
Sat Sep 02, 2023 8:41 am
Forum: Announcements
Topic: [ANN] Release LiveCode 10.0.0 DP-6
Replies: 9
Views: 24299

Re: [ANN] Release LiveCode 10.0.0 DP-6

@bobcole: Looking at the dp-5 version of the app it looks like you are using a custom html page - does your app work if you use the standard html page? If so, you'll need to update your custom page using the latest from dp-6 as a base. If that doesn't work then please email support@livecode.com incl...
by LCMark
Fri Aug 25, 2023 10:18 am
Forum: Getting Started with LiveCode - Experienced Developers
Topic: How to debug script widget?
Replies: 10
Views: 6566

Re: How to debug script widget?

I've tried a number of things with the code including bypassing as much as possible during openControl, but this seems to have zero impact and similarly 'Lock Screen' has no impact either. Could this be an issue specific to graphics? (I'm sure this was an issue with LC 9.6.2 or 9.6.3 that was solve...
by LCMark
Wed Aug 23, 2023 5:36 am
Forum: Getting Started with LiveCode - Experienced Developers
Topic: How to debug script widget?
Replies: 10
Views: 6566

Re: How to debug script widget?

@stam: I'll let Ali answer these question; however, I think the speed issue is probably for two reasons... One is due to using `the mouse is up` in layoutVisualControls - this will cause a brief pause to check the event loop for mouse messages. Then (subsequently) if the mouse is up (which it almost...
by LCMark
Thu Apr 27, 2023 4:39 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: pink Answer dog
Replies: 6
Views: 3062

Re: pink Answer dog

@jameshale: That is most strange! If you have 9.6.8 (or 9.6.7) to hand - can you see if you get the same problem there? Does your standalone main stack have a pink background color (and therefore it could be an inheritence issue - answer dialog is made a substack of the main stack when standalones a...

Go to advanced search