Search found 189 matches

by KimD
Thu Jun 07, 2018 11:57 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: exitField firing multiple times
Replies: 8
Views: 1455

exitField firing multiple times

I create a new stack containing one field "AAA" - LockText is false - FocusWithKeyboard is true - Script is shown below: on closeField Answer "CloseField" & the name of me end closeField on exitField Answer "ExitField" & the name of me end exitField 1) If I click on field AAA, change its contents, a...
by KimD
Wed Jun 06, 2018 3:00 am
Forum: Talking LiveCode
Topic: LiveCode won't run anymore
Replies: 5
Views: 1443

Re: LiveCode won't run anymore

Probably the same problem - LC9 just stopped working on Windows10. Little lego "Start the Tour" man would pop-up, briefly taunt me, then LC would shut down.

Same solution - delete the LC preferences file - C:\Users\MyName\AppData\Roaming\RunRev\Preferences

Thanks for the post!
by KimD
Sun Jun 03, 2018 11:08 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: "One optionMenu to rule them all..."
Replies: 2
Views: 821

"One optionMenu to rule them all..."

I'm writing an app that needs to run on Windows desktop, and Android and iPhone. The app is going to need to have a lots (couple of hundred) of buttons that allow the user to pick from a pre-defined list of items. Typically the user will need to choose from a list of between 10 and 30 items. For Win...
by KimD
Fri May 18, 2018 9:40 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Test that JSON received is valid
Replies: 4
Views: 1024

Re: Test that JSON received is valid

Thanks Craig, Max & Jacque. I will give try / catch a go. So much to learn............
by KimD
Fri May 18, 2018 5:15 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Test that JSON received is valid
Replies: 4
Views: 1024

Test that JSON received is valid

I'm working on an app that reads JSON from a web service. For this I'm using JSONImport, putting the JSON into a LC array and from the array into an SQLite db. It seems to work nicely. Then I thought "I really should code this so that it doesn't explode if the web service passes it invalid JSON". So...
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: 602

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

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

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

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

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

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

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

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

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

Go to advanced search