Search found 2057 matches

by SparkOut
Thu Feb 13, 2020 8:18 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Multiple Conditionals on if statement?
Replies: 23
Views: 570

Re: Multiple Conditionals on if statement?

I agree, everyone should always quote literals properly. It's not just sloppy code otherwise, it is prone to failure (as it should be).
by SparkOut
Sun Feb 09, 2020 8:48 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: When specialFolderPath() fails
Replies: 3
Views: 211

Re: When specialFolderPath() fails

No, the boolean evaluation is resolving wrongly, you should use parentheses to ensure the value to be evaluated is concatenated first: put there is a file (specialFolderPath("desktop") & "/" & "lorem.html") The way you have it, the interpreter is treating it as two boolean tests with an and conditio...
by SparkOut
Sat Feb 08, 2020 4:10 pm
Forum: Talking LiveCode
Topic: Weird issue making use of Behaviour Scripts
Replies: 9
Views: 365

Re: Weird issue making use of Behaviour Scripts

For testing, try answer linecount at the top of the button_registered handler of the behavior script and see if the parameter is being sent along with the message. In the register_button handler of the card script, also try enclosing the variable names in parentheses to ensure the engine correctly r...
by SparkOut
Sat Feb 08, 2020 12:29 pm
Forum: Talking LiveCode
Topic: Weird issue making use of Behaviour Scripts
Replies: 9
Views: 365

Re: Weird issue making use of Behaviour Scripts

What is the specific statement in the behavior script that assigns the value to linenumber? Something like

Code: Select all

put mainscriptFunction(tVar) into linenumber
or...?
by SparkOut
Sat Feb 08, 2020 11:04 am
Forum: Talking LiveCode
Topic: Weird issue making use of Behaviour Scripts
Replies: 9
Views: 365

Re: Weird issue making use of Behaviour Scripts

What Richard said. But also, where is the value being assigned to the variable linenumber ? In a behavior script all variables are instanced, as are references to the object hierarchy - so "of me" will resolve to the individual object, for example, as if the script had been written for that object i...
by SparkOut
Thu Feb 06, 2020 6:59 pm
Forum: Databases
Topic: Different between numbers and Chars
Replies: 3
Views: 353

Re: Different between numbers and Chars

What AxWald said, very eloquently. But also, please do NOT EVER store a user's password in plaintext. You should always hash the password given when the user signs up, and store the hash. Then when the password is given to log in, hash it again and compare the hashes, not the password. Note MD5 and ...
by SparkOut
Thu Feb 06, 2020 6:24 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Help with a recursive function
Replies: 4
Views: 240

Re: Help with a recursive function

I haven't had chance to test, or even look properly, but given that it is a recursive function it might just be that it is iterating a helluva lot and taking time in the loop. Perhaps locking messages and locking screen for the duration of processing will help? If not, it might be possible to optimi...
by SparkOut
Thu Feb 06, 2020 1:12 am
Forum: Talking LiveCode
Topic: Hacking the table field
Replies: 1
Views: 107

Re: Hacking the table field

Patient: "Doctor, doctor! It hurts when I do that".

Doctor: "Well, don't do that then."

:lol:
by SparkOut
Tue Feb 04, 2020 8:24 am
Forum: Getting Started with LiveCode - Experienced Developers
Topic: No Control Break?
Replies: 5
Views: 194

Re: No Control Break?

And inside the loop include a line

Code: Select all

wait 0 milliseconds with messages
to ensure the engine does have "moment" to deal with reading the keyboard instead of giving ALL the cycles to the loop.
by SparkOut
Tue Jan 28, 2020 8:46 am
Forum: Android Deployment
Topic: Default app Screen size in Android?
Replies: 2
Views: 299

Re: Default app Screen size in Android?

In the IDE you can set the size of the stack, and this is what you will get on screen on a desktop deployment. It is possible to have objects on a card that are beyond the boundaries of the stack size and hence invisible. On mobile (certainly Android, I have no experience with iOS) if there are no s...
by SparkOut
Mon Jan 20, 2020 12:07 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: URL specification change LC8.1 to LC9.x [RESOLVED]
Replies: 30
Views: 987

Re: URL specification change LC8.1 to LC9.x

https://en.m.wikipedia.org/wiki/File_URI_scheme The section "How many slashes?" indicates that 3 slashes is correct in the scenario that file: is followed by two slashes as an empty hostname plus a third slash as the leading character in the path. two slashes, without a hostname) is never correct, b...
by SparkOut
Wed Jan 15, 2020 8:30 am
Forum: Databases
Topic: sqlite update execution error if multiple records exist
Replies: 3
Views: 233

Re: sqlite update execution error if multiple records exist

While you are tidying, you might also check the wording of the error message thrown, and adjust it to reflect the type of query (it could be misleading to have the error saying the INSERT failed when the query is to UPDATE).
But that's not making the code work or fail.
by SparkOut
Tue Jan 14, 2020 2:13 pm
Forum: Windows
Topic: LC on ReactOS?
Replies: 55
Views: 13444

Re: LC on ReactOS?

Yes, absolutely
by SparkOut
Mon Jan 13, 2020 10:18 pm
Forum: Windows
Topic: LC on ReactOS?
Replies: 55
Views: 13444

Re: LC on ReactOS?

Bored of Windows bashing.
by SparkOut
Sat Jan 11, 2020 9:13 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: LC8.1 crashes on Color Palette; please confirm
Replies: 8
Views: 356

Re: LC8.1 crashes on Color Palette; please confirm

Re: regressions vs fixes I didn't mean to suggest that there are a lot of regressions in later versions, I just didn't want to convey the blinkered view that newer versions are guaranteed not to have problems. By and large, newer = more fixes. It's just that there could be a reason why a specific ol...

Go to advanced search