Search found 13530 matches

by Klaus
Fri Mar 01, 2024 12:36 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Click and/or drag ?
Replies: 58
Views: 3338

Re: Click and/or drag ?

Because DRAGDELTA will affect the DRAG commands but not the GRAB command.
These two are completely different things.
by Klaus
Thu Feb 29, 2024 8:10 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: How to change order of fields in a group?
Replies: 13
Views: 746

Re: How to change order of fields in a group?

It is NEVER too formal to do an introduction! 8)
by Klaus
Thu Feb 29, 2024 6:00 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: How to change order of fields in a group?
Replies: 13
Views: 746

Re: How to change order of fields in a group?

... But I would recommend naming your fields, something like "myField1, myField2..." You can also do this by script: ... put the num of flds of grp "MainGroup" into num_fields repeat with i = 1 to num_fields set the name of fld i of grp "MainGroup" to ("field" & i) ... Late you can iterate throiugh...
by Klaus
Thu Feb 29, 2024 5:40 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: How to change order of fields in a group?
Replies: 13
Views: 746

Re: How to change order of fields in a group?

Hi mrmopo, They are labelled 1 to 30... Do you mean they are named 1, 2,...30? If yes, DON'T! Use a least one character as the first character of the name, maybe f1, f2 etc. For LC -> field "1" is the same as -> the first field on the card -> field 1 I am not sure i understand your question/problem!...
by Klaus
Wed Feb 28, 2024 5:29 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Click and/or drag ?
Replies: 58
Views: 3338

Re: Click and/or drag ?

Hi Zax, not sure I understand your intention with the "mousedown" handler. on mouseDown ## At this point noone will know if the user wants to drag the object or not! if it is a "real" drag then -- prepare the drag action, with for example changing the icon of the button... grab me // drag end will b...
by Klaus
Wed Feb 28, 2024 4:18 pm
Forum: Talking LiveCode
Topic: text conversion?
Replies: 30
Views: 1555

Re: text conversion?

Hi Joe,

makes sense, since this
-> mb_convert_encoding(...,'UTF-8','ISO-8859-1')
is the replacement for
-> utf8_encode

Best

Klaus
by Klaus
Wed Feb 28, 2024 2:03 pm
Forum: HTML5
Topic: New to HTML
Replies: 4
Views: 634

Re: New to HTML

Hi Kaveh,

since html5 does not support the clipboard or copy/paste, here a workaround for this problem:
https://forums.livecode.com/viewtopic.p ... 15#p227904
No idea if html5 can import/export text files...

Best

Klaus
by Klaus
Wed Feb 28, 2024 1:56 pm
Forum: Talking LiveCode
Topic: text conversion?
Replies: 30
Views: 1555

Re: text conversion?

From the webpage I import/read the file as an array (through PHP). Most of the material is numbers. But I had to do something with the title-part of the array. Here I did $titel[] = utf8_encode($linjeArray[12]); I must admit that I don't understand it Maybe that is a little part of the problem? ......
by Klaus
Tue Feb 27, 2024 2:13 pm
Forum: Talking LiveCode
Topic: text conversion?
Replies: 30
Views: 1555

Re: text conversion?

I'd NEVER take an Ü for an Ü! :-D
by Klaus
Tue Feb 27, 2024 1:53 pm
Forum: Talking LiveCode
Topic: text conversion?
Replies: 30
Views: 1555

Re: text conversion?

Yes, Klaus simply put into a text-file... OK, I guessed, try this script, it will NOT doe the replace thing but encodes your exported text to UTF8 and chances are good that PHP will recognize the format as UTF8 and act accordingly. However I have no idea of PHP, maybe something sels has to be set i...
by Klaus
Tue Feb 27, 2024 12:33 pm
Forum: Talking LiveCode
Topic: text conversion?
Replies: 30
Views: 1555

Re: text conversion?

Hi Joe, ... At first I just exported the text of card flds into a txt-file. When I open that on my Mac it's looks all fine. But when I import the text (via PHP) certain chars are replaced... How did you export the text from LC to TXT file on your Mac? Just a: put the text of fld "dansk" into url("fi...
by Klaus
Tue Feb 27, 2024 10:25 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Livecode Enhancements pack - error after update
Replies: 28
Views: 3085

Re: Livecode Enhancements pack - error after update

Glad it works for you and sorry, I forgot a & in my script.
Yes, base64encode is the way to "translate" binary data to a string that can e.g. be sent via email.
by Klaus
Mon Feb 26, 2024 6:08 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Livecode Enhancements pack - error after update
Replies: 28
Views: 3085

Re: Livecode Enhancements pack - error after update

Using my example, e.g. store the images on the desktop ... put the keys of tAt into tFilenames repeat with i = 1 to the num of lines of tFilenames ## tFileName now contains the name of the first KEY of tAt put line i of tFilenames into tFileName ## Save the images on the desktop: put base64decode(tA...
by Klaus
Mon Feb 26, 2024 11:26 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Livecode Enhancements pack - error after update
Replies: 28
Views: 3085

Re: Livecode Enhancements pack - error after update

tAt is NOT empty, it contains another ARRAY!

You cannot set the htmltext of the browser object to an array.
But you can access its keys, which are the filename of the attached files.
by Klaus
Sun Feb 25, 2024 7:20 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Livecode Enhancements pack - error after update
Replies: 28
Views: 3085

Re: Livecode Enhancements pack - error after update

Hi Marc, I saved an email with a MP3 file attached. See in the script, attachments are also returned in an array with ... put emlToArray(tData) into tArray put getAttachments(tArray) into tAt ... The keys are abviously* the filename of the attached file and the content of that key its base 64 encode...

Go to advanced search