Search found 2122 matches

by [-hh]
Tue Oct 15, 2019 10:56 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: How to stop Answer Dialog from displaying "answer dialog" ?
Replies: 21
Views: 552

Re: How to stop Answer Dialog from displaying "answer dialog" ?

FourthWorld wrote:I see "answer dialog" very briefly on Windows, but nowhere near 1/2 second, maybe a tick or two.
.

Wow. A tick is close to the minimum time ever measured for human beings to perceive image changes ...
by [-hh]
Tue Oct 15, 2019 10:27 pm
Forum: Talking LiveCode
Topic: Using external script only stack as behaviour
Replies: 27
Views: 587

Re: Using external script only stack as behaviour

Just as an additional remark.
If I remember right there was last year a post by Mark Waddingham who said it was never intended to use "set the behaviour" to anything else than to a button. And that this may be restricted to buttons in future versions.
by [-hh]
Sun Oct 13, 2019 8:00 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: How to stop Answer Dialog from displaying "answer dialog" ?
Replies: 21
Views: 552

Re: How to stop Answer Dialog from displaying "answer dialog" ?

The same here. Shortly (around 0.5 seconds) visible in titlebar. Win10-64bit, LC 9.5.0.
Please report as bug.
by [-hh]
Fri Oct 11, 2019 11:28 pm
Forum: LiveCode Builder
Topic: Browser Widget usage examples
Replies: 46
Views: 18525

Re: Browser Widget usage examples

Widget usage example #28: ELIZA_bot This stack is a GUI to the javascipt library elizabot.js by Norbert Landsteiner. The library and the vocabulary of the bot are already part of the stack (so you can use it offline). Find this default vocabulary also attached so that you can make changes/additions...
by [-hh]
Thu Oct 10, 2019 9:55 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Sequential variable names
Replies: 12
Views: 392

Re: Sequential variable names

Let me collect the methods because this is often asked in the forum. We check the results of each of the following approaches with "the variableNames". You can see there which variables exist after creation attempts. This method produces repeatedly ONE variable tmpName, NOT what you want: on mouseUp...
by [-hh]
Thu Oct 10, 2019 7:14 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Possible to easily assign lists to variables & vice-versa?
Replies: 52
Views: 1321

Re: Possible to easily assign lists to variables & vice-versa?

And I don't use language like "as you fear arrays" like -hh did. And as for his supposed help, about half of it was irrelevant to what I was actually asking about, and most of the rest was just wrong. The wonderful thing here is that everybody can take a piece of code and test for himself what's wr...
by [-hh]
Thu Oct 10, 2019 11:51 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Possible to easily assign lists to variables & vice-versa?
Replies: 52
Views: 1321

Re: Possible to easily assign lists to variables & vice-versa?

Go ahead with the parts of my code that you use. Good luck. :-)
by [-hh]
Thu Oct 10, 2019 9:50 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Possible to easily assign lists to variables & vice-versa?
Replies: 52
Views: 1321

Re: Possible to easily assign lists to variables & vice-versa?

Michael, what is your problem?
I wasn't harder than your replies.
by [-hh]
Thu Oct 10, 2019 4:00 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Possible to easily assign lists to variables & vice-versa?
Replies: 52
Views: 1321

Re: Possible to easily assign lists to variables & vice-versa?

1. You wrote: "It's neither easy nor works for its intended purpose. You've hard-coded the values in. The whole point of the Perl one-liner is to split up some string (which will not always have the same value!) and assign it to different unique variables on the fly. How are you not understanding th...
by [-hh]
Wed Oct 09, 2019 10:50 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Possible to easily assign lists to variables & vice-versa?
Replies: 52
Views: 1321

Re: Possible to easily assign lists to variables & vice-versa?

In sum, as we now know what you really want. 1. I gave you examples for several scenarios. The third example was the one you wanted. put "variable1,variable2,variable3" into theList -- the string of items put "variable1","variable2","variable3" into theList -- items of strings put (variable1,variabl...
by [-hh]
Wed Oct 09, 2019 10:32 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Possible to easily assign lists to variables & vice-versa?
Replies: 52
Views: 1321

Re: Possible to easily assign lists to variables & vice-versa?

What's going on here? put (var1|var2|var3|var4|var5) into theList is wrong syntax. You can't use anything else but a comma for an enumeration of variables! [Edit: Removed a note about using space as parameter separator in the definition of functions or handlers. I was wrong: This is allowed (but of ...
by [-hh]
Wed Oct 09, 2019 7:20 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Possible to easily assign lists to variables & vice-versa?
Replies: 52
Views: 1321

Re: Possible to easily assign lists to variables & vice-versa?

Code: Select all

put (var1, var2, var3, var4, var5) into theList
replace comma&space with tab in theList
Note. In your list each item begins with a space!
by [-hh]
Wed Oct 09, 2019 6:36 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Here's how to add an item to the end of a list
Replies: 4
Views: 185

Re: Here's how to add an item to the end of a list

You write "newItem & comma". Write "comma & newItem".

A bit more compact:

Code: Select all

put "",newItem after theList -- use value of variable newItem
put ",abcd" after theList -- use value
by [-hh]
Wed Oct 09, 2019 2:34 am
Forum: Bug Triage
Topic: script local bug or file corruption?
Replies: 7
Views: 559

Re: script local bug or file corruption?

@HansRij
Did you uncheck "Variable Preservation" of tab "Script Editor" of the preferences?
by [-hh]
Wed Oct 09, 2019 12:51 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Possible to easily assign lists to variables & vice-versa?
Replies: 52
Views: 1321

Re: Possible to easily assign lists to variables & vice-versa?

FourthWorld and dunbarx are right, this is a simple split/combine thing. LC Script has no true lists as perl, so you have to use arrays. If you wish to use true lists (and won't stay with perl) then you could use LC Builder. For your original problem, you have in LiveCode (name,value)-pairs in a lis...

Go to advanced search