Search found 243 matches

by RossG
Mon Aug 27, 2018 1:17 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Sort List Fields
Replies: 11
Views: 1223

Re: Sort List Fields

Field 2 shows the stdDev and avgDev of the
sets of numbers in field 1 so when the deviations
are sorted I want the number sets to be in the
same order.
by RossG
Mon Aug 27, 2018 12:12 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Sort List Fields
Replies: 11
Views: 1223

Sort List Fields

I have two list fields.
When I sort field f2 I want field f1 to be
sorted in the same order.

Stack attached.
by RossG
Sat Jun 16, 2018 3:36 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Text Entry field Cursor
Replies: 14
Views: 1838

Text Entry field Cursor

I have a text entry field for the user to add/modify data.
It works but is inconvenient as the cursor can't be
positioned with the mouse. Tried "set cursor to arrow"
without success.

London to a brick there's an solution and someone
here knows what it is. (LC 7.1.2, Win XP)
by RossG
Sat Jun 09, 2018 10:51 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: MouseUp or MouseDown?
Replies: 14
Views: 1937

Re: MouseUp or MouseDown?

Regarding "on mouseUp" allowing the user to
change his/her mind before releasing the
button isn't it normal for a programme to
allow the user to "undo" a wrong click?

So I find the argument for "on mouseUp" is
pretty feeble.
by RossG
Fri Jun 08, 2018 9:38 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: MouseUp or MouseDown?
Replies: 14
Views: 1937

Re: MouseUp or MouseDown?

I can't recall ever changing my mind mid-click
but perhaps one day...

Don't see anything in the Dictionary about
using left or right (or middle) mouse button.
Have I missed something?
by RossG
Thu Jun 07, 2018 10:33 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: MouseUp or MouseDown?
Replies: 14
Views: 1937

MouseUp or MouseDown?

I've long been intrigued by the default
"on mouseUp" since "on mouseDown" seems
more intuitive and I've recently found that
in some cases "mouseDown" works better.

Is there some history in the use of "mouseUp"?
by RossG
Thu May 24, 2018 6:14 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Putting some life into an empty field
Replies: 2
Views: 723

Putting some life into an empty field

I have three fields which I've set up to
react to a mouseUp but I find that if
a field is empty it "plays dead" even
though I've added code to get a function
if "me is empty" but still no reaction.

Is there an answer?
by RossG
Sun May 20, 2018 2:56 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: What line is it?
Replies: 5
Views: 1121

Re: What line is it?

Thanks for your help ClipArtGuy.

I must remember to use the field and
not the array which populates it (and
is superfluous anyway).
by RossG
Sun May 20, 2018 12:35 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: What line is it?
Replies: 5
Views: 1121

What line is it?

I have a list field with two items per line..

17 18
22 19
13 21
27 26

I can find the line which item 2 matches
e.g 21 but I then need the line number so that I
can extract item 1 for that line and 3 or 4
lines before and after.
by RossG
Thu Apr 12, 2018 3:23 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Mod Question
Replies: 6
Views: 817

Re: Mod Question

Thanks guys for your help.

I ended up with what I think is a nifty bit of code...

Code: Select all

 repeat with x = 8 to min(36,(field SCount div 4 * 4)) step 4
This was to avoid a "divide by zero" error.
by RossG
Wed Apr 11, 2018 1:07 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Mod Question
Replies: 6
Views: 817

Re: Mod Question

Well, if I put 22 mod 5 the answer is 2 - the remainder.
whereas 22/5 is 4.4. The answer I want is 4 not 2.
Just coded it to delete char "." and following numbers.

While on the subject I wonder has anyone found a use
for "mod" and if so what was it.
by RossG
Wed Apr 11, 2018 7:12 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Sockets...
Replies: 1
Views: 369

Sockets...

Been thinking about using a socket but on
investigation I found that it seems my idea
of what a socket can do was a bit off.

I thought I would be able to send a command
(send mouseUp to button k7) from one stack
to another.

Is it possible? Has anyone done it?
by RossG
Wed Apr 11, 2018 7:07 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Mod Question
Replies: 6
Views: 817

Mod Question

Is there a function to give the whole
part of the number?

I've done it with a bit of code but just
feel that it's in.
by RossG
Thu Oct 26, 2017 3:37 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Program works fine, but fails as standalone
Replies: 10
Views: 1163

Re: Program works fine, but fails as standalone

I've developed a great way to make a stand-alone fail.

Just leave a break-point set when you compile.

Works every time.
by RossG
Fri Sep 15, 2017 2:29 am
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Just sO
Replies: 9
Views: 1658

Re: Just sO

Came to the conclusion that this was an editor "glitch".

Had another one which resulted in an "else" being
deleted except for one "e" when I pressed the
return key.

All in a days fun.

Go to advanced search