Search found 33 matches

by Alistair
Sat Oct 25, 2008 8:07 am
Forum: Talking LiveCode
Topic: Unexpected behaviour within repeat loop
Replies: 4
Views: 4583

I understand. I am starting to grasp the differences between what happens in the engine and what happens outside the engine. Thanks again for your terrific support.
by Alistair
Sat Oct 25, 2008 6:48 am
Forum: Talking LiveCode
Topic: Unexpected behaviour within repeat loop
Replies: 4
Views: 4583

Thanks, Jan. That made a world of difference. I thought that the explanation may be something like this. However, how does the WAIT command change the situation if the wait time is set to zero?
by Alistair
Sat Oct 25, 2008 5:08 am
Forum: Talking LiveCode
Topic: Unexpected behaviour within repeat loop
Replies: 4
Views: 4583

Unexpected behaviour within repeat loop

I am encountering what to me seems strange behaviour within a repeat loop. In the following script, put theta into fld "theta" does not result on display of theta until the script has exited the repeat loop. Even stranger, moving the line "put phi into fld "phi"" above "end repeat" seems to result i...
by Alistair
Tue Oct 14, 2008 8:29 am
Forum: Talking LiveCode
Topic: Integers and reals
Replies: 4
Views: 5081

Hi Jan Appending the empty string was the key piece of information that I was missing. Thanks for pointing that out. My script is now retrieving data from the array. I have also changed to using "trunc". The project I am working on was originally developed by someone else in Hypercard so I have been...
by Alistair
Mon Oct 13, 2008 4:04 am
Forum: Talking LiveCode
Topic: Integers and reals
Replies: 4
Views: 5081

Integers and reals

I have a function that returns the integer component of a real; e.g. passing a variable containing 5.2 should return 5. I want to use the value returned as a key for retrieving an element from an array. The function appears to extract the integer correctly but when the value is returned it appears a...
by Alistair
Sun Oct 12, 2008 12:57 pm
Forum: Mac OS
Topic: Hypercard conversion issue
Replies: 2
Views: 3938

The markers don't have a name. All that is displayed is a numerical value but the values depend on the trace. The use of a two-dimensional array might be the way to go, with the calculated values first being put into the array and then being transferred to the respective fields via a loop once the a...
by Alistair
Sun Oct 12, 2008 2:55 am
Forum: Mac OS
Topic: Hypercard conversion issue
Replies: 2
Views: 3938

Hypercard conversion issue

Here is a rather unusual Hypercard conversion issue. I am working on converting a card that displays a trace. Values need to be shown along an axis. The tricky part is that the values vary depending on the trace. In Hypercard, the values were added as the trace was drawn. This was easy because text ...
by Alistair
Sun Oct 12, 2008 2:33 am
Forum: Talking LiveCode
Topic: referring to a field that is part of a group
Replies: 5
Views: 5100

Thanks for those tips. I have set up the cards with the same background and my script working perfectly. I tried a few possibilities before posting my message but didn't quite get the syntax right.
by Alistair
Fri Oct 10, 2008 10:57 am
Forum: Talking LiveCode
Topic: referring to a field that is part of a group
Replies: 5
Views: 5100

referring to a field that is part of a group

This seems like a really basic question but I can't find an explanation anywhere: how does one refer to a field that is part of a group. I have a number of text fields grouped and the group is then used as a background extending across several cards. I want to be able to read the contents of a speci...
by Alistair
Mon Oct 06, 2008 8:53 am
Forum: Talking LiveCode
Topic: Diagnosing some serious performance issues
Replies: 2
Views: 3208

Thanks, Malte. Those leads sound very promising. I need to check the implications of the hcAddressing setting particularly. This explains some behaviour that I could not understand. Whether it also explains the performance problem remains to be seen. I have an openCard script that I need to check al...
by Alistair
Mon Oct 06, 2008 3:57 am
Forum: Talking LiveCode
Topic: Diagnosing some serious performance issues
Replies: 2
Views: 3208

Diagnosing some serious performance issues

I have begun to run into some very serious performance issues. I am working on a project that began life in Hypercard and that I have been converting to run in Revolution. It has some quite long scripts which have required conversion. After making very good progress without any noticeable performanc...
by Alistair
Fri Sep 26, 2008 2:47 pm
Forum: Talking LiveCode
Topic: arc drawing
Replies: 9
Views: 7169

I have found the solution but in doing so have made an interesting discovery. Asinindegrees returns the equivalent in degrees to an angle in radians. The result wasn't rounded to the nearest degree. Yet is was accepted as a startAngle and in the calculation of the arcAngle. I have now rounded the ca...
by Alistair
Fri Sep 26, 2008 1:54 pm
Forum: Talking LiveCode
Topic: arc drawing
Replies: 9
Views: 7169

Here is the part of the script where I draw the arc. I suspect that it won't be very easy to follow what I am doing. reset the templategraphic set the style of the templategraphic to oval set the linesize of templategraphic to 1 set the antialiased of templategraphic to true set the rect of template...
by Alistair
Fri Sep 26, 2008 11:42 am
Forum: Talking LiveCode
Topic: arc drawing
Replies: 9
Views: 7169

If I set the startAngle at 90 and the arcAngle to 30 then I will draw an arc from the 12 o'clock position to the 11 o'clock position. If what I want to draw an arc from the 12 o'clock position to the 1 o'clock position I need to setting the startAngle to 60 and the arcAngle to 30. I thought that I m...
by Alistair
Fri Sep 26, 2008 9:34 am
Forum: Talking LiveCode
Topic: Calculation errors
Replies: 14
Views: 10214

Yes, thanks, Mark. I'm displaying the value but not the tics.

Alistair