Search found 2061 matches

by SparkOut
Thu Feb 20, 2020 9:39 pm
Forum: Windows
Topic: Problem with formatForPrinting not working
Replies: 2
Views: 146

Re: Problem with formatForPrinting not working

I don't often print from LiveCode but when I do it is on Windows and setting a "print stack" to have formatForPrinting as true, it "works". This setting also applies when printing to pdf so I am not sure whst is "wrong" with how you are trying to print. As jacque says, could you provide some sample ...
by SparkOut
Thu Feb 20, 2020 9:30 pm
Forum: Talking LiveCode
Topic: text copied from LC generated PDF, WTF?
Replies: 22
Views: 503

Re: text copied from LC generated PDF, WTF?

FourthWorld wrote:
Thu Feb 20, 2020 5:06 pm
A better approach to covering bases without replicating the discussion itself might be to post the question here, and on the list merely describe the issue with a link to this forum thread, and encourage replies to go here.
Oh yes! That would be brilliant. (If only...)
by SparkOut
Thu Feb 20, 2020 8:51 am
Forum: Databases
Topic: Picking Random Name From Array
Replies: 3
Views: 104

Re: Picking Random Name From Array

You know how to reference the elements in an array, don't you? You already did this when you made your loop to create the array of names. Put it into Array_Names[loop] the variable 'loop' is replaced each time with the key from 1 to 10 to insert a new name. So if you have taken a random key and put ...
by SparkOut
Tue Feb 18, 2020 8:54 pm
Forum: Linux
Topic: Installing LiveCode in Linux Mint -- Cinnamon
Replies: 3
Views: 93

Re: Installing LiveCode in Linux Mint -- Cinnamon

I think you probably need to set the downloaded file as executable. In Mint I think you can use the GUI to right-click and set the properties to allow executable permission. After that, double clicking should give you a prompt that asks whether it should be run, or other choice.
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: 748

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

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

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

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

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

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

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

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

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

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

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

Go to advanced search