set rect of fld f1 of cd c1 of wd w1 to rect of fld f2 of cdc2 of wd w2

Lynch, Jonathan bnz2 at cdc.gov
Fri Aug 26 14:38:04 EDT 2005


I have a table object that consists of fields which serve as cells,
inside of groups which serve as rows, inside of a group which is the
table.

Each Row is named group mRow_1, mRow_2, mRow_3 etc...

When you drag a row so that it is moved in between two other rows, its
name is changed. Each row holds a customproperty describing the location
of information in another stack.

When you type in the other stack, the change is reflected instantly in
the table. To do this, it goes to the table in question, and looks for
the row containing the appropriate custom property, than changes the
text in that row.

It works great, and I cannot see any slowness. However, if I had a
couple hundred rows, I think there would be some slowness with having to
search for the appropriate row on every single keystroke.

See, I cannot tell it to make a change to the row by its name without
first searching for the row that contains that name, because its name
may change as rows are added, deleted, or moved. 

I could do it by its altid property - but I don't trust altID - it makes
me nervous because it is addressed through the same commands as the ID
property. If it was addressed like this: Field altID 100    - well, that
would work fine. But as it is set up right now, it can get confused
between field id 100 and field altid 100.


-----Original Message-----
From: use-revolution-bounces at lists.runrev.com
[mailto:use-revolution-bounces at lists.runrev.com] On Behalf Of Scott
Rossi
Sent: Friday, August 26, 2005 2:27 PM
To: How to use Revolution
Subject: Re: set rect of fld f1 of cd c1 of wd w1 to rect of fld f2 of
cdc2 of wd w2

Recently, Lynch, Jonathan  wrote:

> I want more ways of addressing an object. I could really use an
altname
> property.
> 
> Put 8 into field altname "myField"
> 
> This way I can address a field by either its name or its altname. I
have
> a definite use for that.

Currently you can address a field by its name, id and number.  What need
do
you have that would require another form of address?

Regards,

Scott Rossi
Creative Director
Tactile Media, Multimedia & Design
-----
E: scott at tactilemedia.com
W: http://www.tactilemedia.com

_______________________________________________
use-revolution mailing list
use-revolution at lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your
subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution





More information about the use-livecode mailing list