Search found 10442 matches

by Klaus
Thu Dec 13, 2018 7:25 pm
Forum: Talking LiveCode
Topic: Adding text to an image
Replies: 2
Views: 43

Re: Adding text to an image

Hi Simon, add an empty text field in the lower left corner of your image and then group the image and the field, so you can export a snaphot from that group easily. Put the long date into fld "the one over the image", or ASK the user to enter some text and put that into the field. Continue with #3, ...
by Klaus
Thu Dec 13, 2018 5:16 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Standalone with SQLite and Mac
Replies: 7
Views: 101

Re: Standalone with SQLite and Mac

Hm, everything looks good, except the fact that we do not see any error in the second dialog!?
I'm out of ideas in the moment...

If you like you can send me the stack and the DB file and I will take a look: klaus AT major-k.de
by Klaus
Thu Dec 13, 2018 4:37 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Standalone with SQLite and Mac
Replies: 7
Views: 101

Re: Standalone with SQLite and Mac

Do you get an error? If yes, what does it say? And please try this: ... if gDBID is not an integer then answer question "Error - Unable to connect to the database:" && CR & gDBID end if ... What does the dialog say? So the db file is already present in your Docs folder, right? Then please also try: ...
by Klaus
Thu Dec 13, 2018 3:37 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Standalone with SQLite and Mac
Replies: 7
Views: 101

Re: Standalone with SQLite and Mac

No# 3 is the way to go, been doing this for years! Do you get any errors? Please check the result of the DB connection: ... if gDBID is not an integer then answer question "Error - Unable to connect to the database:" && CR & gDBID end if ... And see what the dialog says. Another idea; There are in f...
by Klaus
Thu Dec 13, 2018 3:05 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Standalone with SQLite and Mac
Replies: 7
Views: 101

Re: Standalone with SQLite and Mac

Hi Carles, 1. In this case these lines: ... put specialFolderPath("documents") into tDBPath put "/Lloguers.db" after tDBPath put revOpenDatabase("sqlite", tDBPath, , , , ) into gDBID ... will create a new and EMPTY database file in the Docs folder! 2. In this case the db file will be in -> specialfo...
by Klaus
Sun Dec 09, 2018 5:46 pm
Forum: Talking LiveCode
Topic: How to change current stack
Replies: 11
Views: 201

Re: How to change current stack

Hi Craig,
Klaus' suggestion always put the stack of interest in front, but that does not always jibe with what the user is intended to see.
this is so true, I also recommend the explicit card and stack referencing in cases like this one!

Best

Klaus
by Klaus
Sun Dec 09, 2018 5:17 pm
Forum: Talking LiveCode
Topic: How to change current stack
Replies: 11
Views: 201

Re: How to change current stack

Maybe you could just:
...
set the defaultstack to "main"
...
?
by Klaus
Fri Dec 07, 2018 5:58 pm
Forum: Talking LiveCode
Topic: Understanding the timescale property
Replies: 4
Views: 277

Re: Understanding the timescale property

I can move this thread, but lets wait if Rand agrees!
by Klaus
Thu Dec 06, 2018 10:00 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Commercial product offer
Replies: 8
Views: 311

Re: Commercial product offer

Markm49uk wrote:
Thu Dec 06, 2018 9:33 pm
Wow email based messages. Haven’t used those since 2002!
The are still working the same way!
by Klaus
Thu Dec 06, 2018 6:06 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: How to store an array in
Replies: 7
Views: 179

Re: How to store an array in

Hi Zax, yep, "the styledtext of fld xyz" not only seems to be, but in fact IS an ARRAY, that's why I was asking if this was mandatory. Just create a node for each card with "number", "title" and "fieldcontent" (and/or whatever you need to save) and just store -> the htmltext of fld "your field here"...
by Klaus
Thu Dec 06, 2018 5:43 pm
Forum: Talking LiveCode
Topic: Understanding the timescale property
Replies: 4
Views: 277

Re: Understanding the timescale property

Hi Rand, sorry for being a bit late for the party... I am just a user of LC and have no knowledge about the "innerds" of LC. But I think "the timescale of player xyz" is only something that the underlying multimedia-system returns and we and LC do not have any influence on that. Since there are prob...
by Klaus
Thu Dec 06, 2018 4:35 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: How to store an array in
Replies: 7
Views: 179

Re: How to store an array in

Hi Zax,

does it have to be an ARRAY? "the htmltext of fld xyz" and "the rtftext of fld xyz" will also preserve the formatting of the field. This way you could also store everything into a XML file.

My XML-knowledge is a bit rusty, but you get the picture. :D


Best

Klaus
by Klaus
Mon Dec 03, 2018 9:29 pm
Forum: Converting to LiveCode
Topic: text to num
Replies: 3
Views: 113

Re: text to num

Hello TheRedLord,

welcome to the forum!

Not sure I understand, but looks like you mean something like:

Code: Select all

...
## fld 1 -> 1+1
put VALUE(fld 1) into fld 2
## fld 2 -> 2
...
Best

Klaus
by Klaus
Sun Dec 02, 2018 3:24 am
Forum: Talking LiveCode
Topic: Upload image into SQL [Longblob]
Replies: 6
Views: 229

Re: Upload image into SQL [Longblob]

https://www.w3schools.com/sql/sql_update.asp

Get back when you get stuck. 8)
by Klaus
Sat Dec 01, 2018 7:22 pm
Forum: Talking LiveCode
Topic: Upload image into SQL [Longblob]
Replies: 6
Views: 229

Re: Upload image into SQL [Longblob]

Hi jwtea, something like this should do: on mouseup ## type is a reserved word! put "*.jpg;*.gif;*.png" into tTypes if there is not an image "photo" then create image "photo" end if answer file "Select file" with type tTypes if it is empty then exit mouseUp end if put it into fn ##if there is a file...

Go to advanced search