Search found 184 matches

by andrewferguson
Wed Oct 15, 2014 11:39 am
Forum: Talking LiveCode
Topic: Find what word a character is in
Replies: 8
Views: 1065

Re: Find what word a character is in

Hi Jean-Marc,
Thanks, but I cannot seem to get your function to work. When I try

Code: Select all

put offsetLetterInWord("LiveCode Forums", 11)
the result is empty, and I need it to be 2

Andrew
by andrewferguson
Wed Oct 15, 2014 11:25 am
Forum: Talking LiveCode
Topic: Find what word a character is in
Replies: 8
Views: 1065

Re: Find what word a character is in

Hi Dave, Thanks for the reply. Unfortunately "wordOffset" is not quite what I am looking for, because I need char 11 of "LiveCode Forums" to return 2, because the 11th char of "LiveCode Forums" occurs in word 2. If I try that with "wordOffset", the result is 1, because the 11th char of "LiveCode For...
by andrewferguson
Wed Oct 15, 2014 10:53 am
Forum: Talking LiveCode
Topic: Find what word a character is in
Replies: 8
Views: 1065

Find what word a character is in

Hi, I need a way to find out what word a certain character is in. For example, say I had char 4 of "LiveCode Forums", the result would be 1 (because char 4 is in the first word of "LiveCode Forums". I looked in the dictionary, and both "charIndex" and "lineIndex" seem very similar to what I am tryin...
by andrewferguson
Sat Oct 04, 2014 7:14 am
Forum: Talking LiveCode
Topic: MouseLeave message to be sent when object moves away
Replies: 3
Views: 1021

MouseLeave message to be sent when object moves away

Hi, I have an object that has a mouseLeave handler. This handler is run when the mouse moves off the object. However if I keep the mouse still and move the object with the "move" command, mouseLeave is only sent when the user moves their mouse a tiny bit after the object have been moved from under t...
by andrewferguson
Fri Oct 03, 2014 6:08 pm
Forum: Talking LiveCode
Topic: Resize a field to the width of its contents
Replies: 3
Views: 890

Re: Resize a field to the width of its contents

Thanks very much, this is exactly what I was looking for!
Andrew
by andrewferguson
Fri Oct 03, 2014 5:47 pm
Forum: Talking LiveCode
Topic: Resize a field to the width of its contents
Replies: 3
Views: 890

Resize a field to the width of its contents

Hi,
I have a field and I need a way for it to resize its width to the the width of text that is in the field. The text in the field could be any length, but will not span over multiple lines.
Any ideas?
Andrew
by andrewferguson
Mon Sep 29, 2014 4:09 pm
Forum: Talking LiveCode
Topic: Move a group in whilst moving an object in the group
Replies: 2
Views: 937

Move a group in whilst moving an object in the group

Hi all, I have a group of objects, and I want to move this group along the horizontal axis. At the same time, I also want an object that is in the group to move along the vertical axis whilst still moving with the rest of the group . I know of a more complicated way that involves calculating where t...
by andrewferguson
Wed Jun 04, 2014 7:20 pm
Forum: Talking LiveCode
Topic: Working with large numbers in LiveCode
Replies: 4
Views: 776

Re: Working with large numbers in LiveCode

Hi Craig,
The thing is, my program is not working with decimal places, all numbers generated are integers.

In answer to Klaus, I have tried setting the numberFormat to various values, and it changes nothing. I am not sure what to do next. Any advice?

Thanks again,
Andrew
by andrewferguson
Wed Jun 04, 2014 12:56 pm
Forum: Talking LiveCode
Topic: Working with large numbers in LiveCode
Replies: 4
Views: 776

Working with large numbers in LiveCode

Hello, I have just started a program that works with large numbers (not for any particular reason, I was just bored). However, when I try and calculate a really large number (for example 2^2^2^2^2^2), I get the result "00000inf". I know this is probably beyond the limits of what LiveCode can process...
by andrewferguson
Sun May 25, 2014 4:13 pm
Forum: Talking LiveCode
Topic: Inverse Tangent in degrees
Replies: 3
Views: 906

Re: Inverse Tangent in degrees

Thank you Dixie, for solving this!
Your help is much appreciated.

Andrew
by andrewferguson
Sun May 25, 2014 3:34 pm
Forum: Talking LiveCode
Topic: Inverse Tangent in degrees
Replies: 3
Views: 906

Inverse Tangent in degrees

Hello, I am trying to find a function that returns the inverse tangent of an angle in degrees. I am currently using the following function for the "normal" tangent: function tanInDegrees angleInDegrees return tan(angleInDegrees * pi / 180) end tanInDegrees but I have now come across a situation wher...
by andrewferguson
Sat May 03, 2014 11:52 am
Forum: Rich Media
Topic: Keep Image Aspect Ratio
Replies: 5
Views: 2220

Keep Image Aspect Ratio

Hello, I have a stack that uses an image object. The user is able to select an image from a list, and the image is loaded up into the image control through the fileName property. However, when the fileName is set the the image path, the size and width of the image control change, causing it to cover...
by andrewferguson
Thu Apr 17, 2014 4:14 pm
Forum: Android Deployment
Topic: Not a valid Android SDK
Replies: 2
Views: 652

Re: Not a valid Android SDK

Just checking, but have you enabled Android 2.2?
by andrewferguson
Thu Apr 17, 2014 3:44 pm
Forum: Talking LiveCode
Topic: Easy cross platform way to show a file?
Replies: 10
Views: 1935

Re: Easy cross platform way to show a file?

... is an easy way to open the folder containing a file in the Finder/Explorer/Linux Desktop. From looking at the LiveCode documentation, I believe that the "launch document" command launches the document in the default application , not the Finder/Explorer/Linux Desktop. Is this what you are looki...
by andrewferguson
Wed Apr 16, 2014 3:40 pm
Forum: Converting to LiveCode
Topic: Moving to LiveCode from Adobe (macromedia) Director?
Replies: 1
Views: 2776

Re: Moving to LiveCode from Adobe (macromedia) Director?

Hello Johan, and welcome to the LiveCode forums! reading and writing text files LiveCode can definitely do that. There is a lesson in the LiveCode lessons website which shows you how to do that: http://lessons.runrev.com/s/lessons/m/4071/l/7407-file-input-output manipulating images (scaling, croppin...

Go to advanced search