[V4RB] accessing Vobjects by index

Pedro fp lists at pedro.Net.au
Mon May 26 18:03:30 CDT 2003


Thanx again Ruslan

On Monday, May 26, 2003, at 05:15  PM, Ruslan Zasukhin wrote:

>> Does the same apply to BaseObjects & fields in statically defined
>> Valentina objects? I would find it extremely useful to be able to
>> access [for example] ...
>> BaseObject(3).Vfield(8)
>
> Yes, this can be faster.
> But more danger of course. In case you change something you need 
> change all
> this numbers. At least I recommend to use constants so you will need 
> change
> one place only.

Like in example 6 ... makes a *lot* of sense :)

> And you already know even faster way -- obtain reference to field 
> before
> loop and then use it in loop

I'm not getting this right away. Feel free to elaborate if you have 
time, otherwise I shall ponder until the penny drops.

Cheers, Pedro :-)

Web: <http://www.pedro.net.au>                    PGP Key ID: 387CD96F
Instant messaging...  AIM: bandidoOfOz  ICQ: 27671678  Jabber: pedrofp
                       MSN: mail at pedro.net.au           Yahoo: pedro_fp
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
"There are no absolutes no absolute good or evil; no absolute way of
living. No absolute truth. All truths are mediated and tempered by the
fact of living. Being alive qualifies all things."
                           Ben Okri in 'A Way of Being Free', 1997, p54




More information about the Valentina mailing list