Search found 2249 matches

by jmburnod
Fri Nov 16, 2018 6:48 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Delete part of text
Replies: 10
Views: 183

Re: Delete part of text

hm, maybe because you are not really using temp but copy it to another variable?
Yes Sir
Thanks again Klaus
by jmburnod
Fri Nov 16, 2018 6:08 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Delete part of text
Replies: 10
Views: 183

Re: Delete part of text

Hi Klaus
I had forgotten "ends with" which is useful for this.
Not sure I understand
repeat for each xxx" is READ ONLY!
line:

Code: Select all

delete char -4 to -1 of  temp
in my second script works fine. What I dont understand ?
Best
Jean-Marc
by jmburnod
Fri Nov 16, 2018 5:40 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Delete part of text
Replies: 10
Views: 183

Re: Delete part of text

Hi Alessio, You can use replace like this: replace ".png" with empty in tFiles or use a loop put empty into tFilesWithoutExtPng put ".png" into textToDelete repeat for each line temp in tFiles if char -4 to -1 of temp = textToDelete then delete char -4 to -1 of temp end if put temp & cr after tFiles...
by jmburnod
Wed Nov 14, 2018 8:04 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: field and variable
Replies: 8
Views: 158

Re: field and variable

Hi,
You have some type in your script (Felda*Feldb)
This should work

Code: Select all

on mouseUp pButtonNumber
   put fld "Felda" into tFelda
   put fld "Feldb" into tFeldb
   put tFelda * tFeldb into tErgebnis
   put tErgebnis
end mouseUp
Best regards
Jean-Marc
by jmburnod
Wed Nov 14, 2018 7:31 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: how can run a LC script code in my standalone APP
Replies: 4
Views: 230

Re: how can run a LC script code in my standalone APP

Hi longzexd,
The idea is attractive but you have to consider you will lost edit tools (indentation for loop, search tools ...)
Just a thought
Best regards
Jean-Marc
by jmburnod
Wed Nov 14, 2018 7:17 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Image control with dynamically associated image
Replies: 6
Views: 180

Re: Image control with dynamically associated image

Hi Alessio, You can also use filename to display an image. This script get a llist of imgs in a folder and display them in one image with a wait time between each image.You can also use filename to display an image. This script get a llist of imgs in a folder and display them in one image with a wai...
by jmburnod
Wed Nov 14, 2018 6:44 pm
Forum: iOS Deployment
Topic: revSpeak for iOS?
Replies: 7
Views: 667

Re: revSpeak for iOS?

Hi Ali, At this time we haven't a simple way to use texttospeech on iOS and i read this: Now we have the foreign function interface in LiveCode Builder, it would be relatively easy to create an LCB library extension to implement it, and subsume the functionality of revSpeak on desktop. Some of us ha...
by jmburnod
Tue Nov 13, 2018 12:26 pm
Forum: Rich Media
Topic: magnify an image crash bug confirmed
Replies: 7
Views: 218

Re: magnify an image crash

Magnify works if you select pencil tool and you click on your image with command key.
But never click at the zoomed image of magnify palette. :shock:
Good news, no crash on LC 4.5, OS X 10.6.8 8)
by jmburnod
Tue Nov 13, 2018 12:11 pm
Forum: Rich Media
Topic: magnify an image crash bug confirmed
Replies: 7
Views: 218

Re: magnify an image crash

Hi All,
I filled a short report bug with a sample stack
Bug 21690 is its sweet name
Kind regards
Jean-Marc
by jmburnod
Tue Nov 13, 2018 10:33 am
Forum: Rich Media
Topic: magnify an image crash bug confirmed
Replies: 7
Views: 218

Re: magnify an image crash

Hi Panos, Thanks for your quick reply which tool have you selected when you click on the palette and it crashes Browse tool I cannot replicate it here, tested with LC 9.0.1 and 9.0.2 RC1 (MacOS 10.13.4). I believe Jean-Marc is on MacOS. Yes OS X 10.13 LC 8.x 9.x Here is a simple stack to test it It ...
by jmburnod
Mon Nov 12, 2018 6:36 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: A link conundrum
Replies: 11
Views: 301

Re: A link conundrum

Hi Craig,
what is missing from this, with regard to what you say you cannot do "in line"?

Code: Select all

put the value of the clickLine into tLink

only works if each line = a whole url.
ajperks use linktext to store url in a string and he need a condition to make 3 different things
Jean-Marc
by jmburnod
Mon Nov 12, 2018 11:26 am
Forum: Rich Media
Topic: magnify an image crash bug confirmed
Replies: 7
Views: 218

magnify an image crash bug confirmed

When I set the magnify of an image to true and I click on the magnify palette LiveCode (v. 8.x and 9.x) crashes.
Is there someone who noticed this ?
Best regards
Jean-marc
by jmburnod
Mon Nov 12, 2018 10:23 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: A link conundrum
Replies: 11
Views: 301

Re: A link conundrum

Here is a way with a timer to get one difference for mouseup message. local sDepTime on mousedown put the seconds into sDepTime end mousedown on mouseup if the seconds - sDepTime > 3 then select the clickChunk if the textStyle of the clickChunk = "link" then set the textStyle of the clickChunk to "p...
by jmburnod
Sun Nov 11, 2018 6:29 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: A link conundrum
Replies: 11
Views: 301

Re: A link conundrum

Hi,
I see to ways now:
1. If that is for desktop app you may use option key to open your edit tools.
2. Using the delay between mouseDown and mouseUp to decide what your script does.
Best regards
Jean-Marc
by jmburnod
Sun Nov 11, 2018 10:25 am
Forum: Talking LiveCode
Topic: Create a handler in a control programmatically.
Replies: 6
Views: 218

Re: Create a handler in a control programmatically.

What Dictionary about "me" is not clear for me (LC 9.0.2 rc 1) put me into myVariable -- puts name, if me is not a container MyVariable = empty if the target is a button, but put the short name of me works put me into myVariable -- puts contents, if me is a container Works with groups, flds and imag...

Go to advanced search