Quantcast
Channel: LiveCode Forums
Viewing all articles
Browse latest Browse all 757

Getting Started with LiveCode - Complete Beginners • What the (*%*

$
0
0
I use this sort of method all the time.

I have a field "F1" with some text properties set. I have a bunch of other fields that I want to mimic those properties. I could write a loop to do so, but I often use a mouseEnter handler to manually select certain of those other fields:

CODE:

on mouseEnter   if the optionkey is down and "field" is in the target then      set the textSize of (line 1  of the target) to the textSize of line 1 of fld "F1"  --works fine      set the textSize of (line 2  of the target) to (the textSize of line 2 of fld "F1")   --fails

The second line fails with "error in object expression". I copied the last line directly from the one above, just changing the '1" to a "2".

Can't wait to hear this one. :cry:

Craig

Statistics: Posted by dunbarx — Thu Jun 13, 2024 6:12 pm



Viewing all articles
Browse latest Browse all 757

Trending Articles