Search found 184 matches

by KimD
Wed Apr 25, 2018 2:47 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: JSON to SQLite - code works, but how to improve?
Replies: 2
Views: 463

Re: JSON to SQLite - code works, but how to improve?

After taking your advice, what I've ended up with is the below - put specialFolderPath("desktop") & "/" & inputName into tFileName put JSONImport(URL("file:" & tFileName)) into tArray If the number of elements of tArray["processed_states_list"]["Item"] > 0 then Put "INSERT into processedState(code, ...
by KimD
Tue Apr 24, 2018 6:08 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: JSON to SQLite - code works, but how to improve?
Replies: 2
Views: 463

JSON to SQLite - code works, but how to improve?

Hi. I need to read a JSON file (example below) into an SQLite table. The code below seems to work, but I suspect that there will be easier ways that I could do this. The "Insert Into" statement in particular, scare the **** out of me. I'm only working with 2 fields, and I've already gained a few add...
by KimD
Thu Apr 19, 2018 10:31 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Spacing between lines on buttons
Replies: 24
Views: 2282

Re: Spacing between lines on buttons

Hi Bogs Yes, I agree. If the size of the control is fixed and the number of lines of text content is fixed, then the Property Inspector is an easy way to vertically centre the text in a field. The advantage that buttons have is that they automatically vertically centre their labels without these two...
by KimD
Thu Apr 19, 2018 3:38 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Spacing between lines on buttons
Replies: 24
Views: 2282

Re: Spacing between lines on buttons

Thanks Bogs. Please let it be true ;-) It's possibly an issue of definitions. I've spotted lots of discussion on this forum, going back to 2007, on how to vertically centre text in a field; but I was under the impression that there was not a Property Inspector solution to this. You can use the Prope...
by KimD
Thu Apr 19, 2018 2:18 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Spacing between lines on buttons
Replies: 24
Views: 2282

Re: Spacing between lines on buttons

Thanks Richard, Bogs & Craig I was using a button instead of a field because buttons gave me zero-script vertical centering of text. A great feature! But I can see that my work-around has created a different set of problems, so I will switch back to using fields. Unfortunately, I've also got a probl...
by KimD
Wed Apr 18, 2018 3:21 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Spacing between lines on buttons
Replies: 24
Views: 2282

Spacing between lines on buttons

Hi to all. I'm just getting back into LC after a years break. I'm stuck on the simplest of things. If I have a button with the label - "Hello & return & "World", how do I reduce the (very generous) amount of white spec between the two lines of the label? I think that if it was a field then I could u...
by KimD
Mon Nov 27, 2017 1:33 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Send XML Doc to web service
Replies: 2
Views: 379

Re: Send XML Doc to web service

Scenario is this: 1) Small organisation (about 25 employees) currently collects data from their users via emailed scans of paper forms. They want to allow their users to submit data via an app instead. Organisation can't control what hardware the user has. They want the app to work for users running...
by KimD
Sun Nov 26, 2017 9:43 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Send XML Doc to web service
Replies: 2
Views: 379

Send XML Doc to web service

I'm wanting to create a LC app that * shows the user a data collection form * packages user submitted data into an XML document * sends (or is it "writes") the XML doc to a web service. The web service will have been created by someone else. I only want to create the data collection app. I have seen...
by KimD
Sun Nov 26, 2017 8:53 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Stack resize in Android/IOS
Replies: 5
Views: 1226

Re: Stack resize in Android/IOS

Sorry for the delay. I haven't been on the forums for several months. Thanks for your comments / advice. I've ended up writing my more recent android apps so that they only position graphical elements when the app first starts - and I haven't spotted any problems with this approach. It seems that in...
by KimD
Wed Apr 12, 2017 6:49 am
Forum: Android Deployment
Topic: Solved - Encrypted Android standalone - 9 seconds to open
Replies: 12
Views: 2202

Solved - Encrypted Android standalone - 9 seconds to open

I realised that there was an easy solution available to me. Only 10% of my SVG widgets are "source". The other 90% of my SVG widgets are derived, by copying a source SVG widget, during the execution of my app. So I: 1) wrote a "SpringClean" handler which set the iconPath of my (approx 180) derived S...
by KimD
Tue Apr 11, 2017 11:21 pm
Forum: Android Deployment
Topic: Solved - Encrypted Android standalone - 9 seconds to open
Replies: 12
Views: 2202

Re: Encrypted Android standalone - 9 seconds to open

Damn - wrote a long reply then lost it when my forum connection timed out. Short version. I've identified that the problem is my 200 SVG widgets. If I reset the icon paths of these to the LC default icon path, then the load time for my encrypted Android standalone drops from over 8.5 seconds to unde...
by KimD
Mon Apr 10, 2017 6:04 am
Forum: Android Deployment
Topic: Solved - Encrypted Android standalone - 9 seconds to open
Replies: 12
Views: 2202

Re: Encrypted Android standalone - 9 seconds to open

The above images have been displayed in order 3, 2, 1. The 4th, and final, output of the message watcher is attached below.
by KimD
Mon Apr 10, 2017 6:01 am
Forum: Android Deployment
Topic: Solved - Encrypted Android standalone - 9 seconds to open
Replies: 12
Views: 2202

Re: Encrypted Android standalone - 9 seconds to open

In case it is helpful, I also attach the results of the Message Watcher (in the IDE, not the Android app).

Regards

Kim
by KimD
Mon Apr 10, 2017 12:57 am
Forum: Android Deployment
Topic: Solved - Encrypted Android standalone - 9 seconds to open
Replies: 12
Views: 2202

Re: Encrypted Android standalone - 9 seconds to open

Thanks Max & Richard My app currently only has a main stack (with 6 cards). Contents include: - 3 images (about 50KB in total, with resize quality "normal") embedded in the app - 5 MP3 files (about 500KB in total) in Standalone > Copy Files - about 200 SVG widgets (I confess, I love SVG widgets) - a...

Go to advanced search