Search found 11503 matches

by Klaus
Wed Apr 01, 2020 4:14 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: repeat
Replies: 2
Views: 36

Re: repeat

Hi kelyanok, important, the correct syntax in your example is: ... repeat with X = 1 to 10 ## or just: repeat 10 ... I wonder why LC did not complain with your syntax!? :-) Please provide a bit more info: 1. Does the user need to keep the mouse pressed (= down) to get the money every one second? 2. ...
by Klaus
Mon Mar 30, 2020 2:47 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: [SOLVED] Start using stack vs insert script into back?
Replies: 3
Views: 134

Re: Start using stack vs insert script into back?

Hi Zax,

yes "librarystack" is only sent to a stack you "start using".
But in the end:

Code: Select all

start using stack xyz
and

Code: Select all

insert the script of stack "myStack" into back
do the same thing.


Best

Klaus
by Klaus
Mon Mar 30, 2020 12:45 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Bold or Change Text color of various lines in Tree View?
Replies: 5
Views: 273

Re: Bold or Change Text color of various lines in Tree View?

Well, this is a tad more complicated. :D

Here a little example that will put a checkmark into a field:

Code: Select all

on mouseUp
   put numtocodepoint(0x2714) into fld 1
end mouseUp
by Klaus
Mon Mar 30, 2020 11:49 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: put string into multiple variables
Replies: 12
Views: 910

Re: put string into multiple variables

Hi kelyan,

OK, send the stack to klaus AT major-k.de with a short info, where to look.
Or put it online somewhere and send me the link.


Best

Klaus
by Klaus
Sun Mar 29, 2020 9:52 pm
Forum: Internet
Topic: JSON to String but can't escape quotes sanely?
Replies: 7
Views: 236

Re: JSON to String but can't escape quotes sanely?

There are some mor JSON related handler/functions in LC, but I don't know if they will do what you need.
Enter JSON in the search field of the dictionary and take a look by yourself.
by Klaus
Sun Mar 29, 2020 9:17 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: put string into multiple variables
Replies: 12
Views: 910

Re: put string into multiple variables

Hm, are these GLOBAL variables? If yes, do you declare them in every script you use them? I think this is different than in other programming languages. Like this: global myGlobalVar on mouseup ## do this and that with myGlobalVar end mouseup command my_custom_command ## do somethong else with myGlo...
by Klaus
Sun Mar 29, 2020 7:01 pm
Forum: Databases
Topic: Join
Replies: 5
Views: 268

Re: Join

SparkOut wrote:
Sun Mar 29, 2020 10:40 am
There are some possibilities to help, but the best bet is to read up about join types (and the rest of sql generally) here https://www.w3schools.com/sql/
Yeah!
Whenever I need to work with databases, I first visit these pages to refresh my wimpy SQL knowledge! :-)
by Klaus
Sun Mar 29, 2020 5:36 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: How to programmatically select list item from value of a custom property
Replies: 8
Views: 301

Re: How to programmatically select list item from value of a custom property

Here another "compression":

Code: Select all

...
## get the cpOwner of me
## put it into theOwner
put the cpOwner of me into theOwner
...
No need to use GET and IT here first! :D
by Klaus
Sun Mar 29, 2020 5:02 pm
Forum: Internet
Topic: JSON to String but can't escape quotes sanely?
Replies: 7
Views: 236

Re: JSON to String but can't escape quotes sanely?

Hi bmcgonag, not sure what you question is, but I use a little function, which saves A LOT of typing in cases like this: function q tString ## We pass a string and the function will return this string in QUOTES return QUOTE & tString & QUOTE end q Then you can: put "{" & q("config") & q(": {") & q("...
by Klaus
Sun Mar 29, 2020 10:23 am
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Bold or Change Text color of various lines in Tree View?
Replies: 5
Views: 273

Re: Bold or Change Text color of various lines in Tree View?

Hi bmcgonag, I wonder if I can add a checkmark icon or something in the tree view some how. I also doubt we can set an ICON here, but "something" is surely possible with a UNICODE character. :D LC now supports UNICODE and that is just text in the end. Something like this: ✔︎ ➡️ ❤️ 🌎... You get the p...
by Klaus
Sun Mar 29, 2020 10:03 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: How to programmatically select list item from value of a custom property
Replies: 8
Views: 301

Re: How to programmatically select list item from value of a custom property

Hi xyz,

welcome to the forum!

Here some great learning resources for the basics of LC, maybe start with "Controls" :-)
http://www.hyperactivesw.com/revscriptc ... ences.html


Best

Klaus
by Klaus
Sat Mar 28, 2020 10:45 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: put string into multiple variables
Replies: 12
Views: 910

Re: put string into multiple variables

Hi kelyanok, just made a little test and it works as advertized! on mouseUp put TRUE into _g1True put TRUE into _g2True put TRUE into _g3True if _g1True = true and _g2True = true and _g3True = true then answer "working" end if end mouseUp Hint: When checking a Boolean value for TRUE, you can omit th...
by Klaus
Sat Mar 28, 2020 12:59 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Bold or Change Text color of various lines in Tree View?
Replies: 5
Views: 273

Re: Bold or Change Text color of various lines in Tree View?

An ARRAY is a variable and variable do not have a (text)STYLE property.
And there is no indication in the dictionary, so I am afraid this is just not possible.
We can only set text and styles for the whole widget.
by Klaus
Fri Mar 27, 2020 9:51 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Table Field
Replies: 20
Views: 578

Re: Table Field

Is this a TABLE field in the screenshot? A TABLE FIELD is basically just a scrolling text field and the content is TAB and CR delimited text. So to change the text in the first line, which is NOT a LABEL, just the string LABEL 8) ***, do like this: ... set itemdel to TAB put "a label" into item 1 of...
by Klaus
Fri Mar 27, 2020 9:27 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Table Field
Replies: 20
Views: 578

Re: Table Field

Code: Select all

set the label of btn "xyz" to "I'm a label!"
8)

I can recommend these stacks to learn the very basics of LC:
http://www.hyperactivesw.com/revscriptc ... ences.html

Go to advanced search