V4RB2 vTable.id Property

erne ernestogiannotta at tiscalinet.it
Tue Mar 1 11:49:40 CST 2005


on 28-02-2005 18:13, Ruslan Zasukhin at sunshine at public.kherson.ua wrote:

> On 2/28/05 5:20 PM, "erne" <ernestogiannotta at tiscalinet.it> wrote:
> 
>>>> I read abbout this new prop:
>>>> 
>>>> ID as Integer (r/o) Returns the unique identifer of the table.
>>>> 
>>>> can we use it to retrieve the table? as in
>>>> 
>>>> tbl = DB.Table(ID)
>>> 
>>> This will conflict to Table( Index ).
>>> 
>>>> i.e.
>>>> ID is the index position of Table in DB structure
>>> 
>>> In kernel we can do this.
>>> 
>>> It seems for V4RB we will need TableByID( id )
>>> 
>> 
>> that would be a lot useful!
> 
> For example ?

store reference to a table for later use avoiding to use table name as
identifier

in my BaseObject subclasses I've added an id prop for such purposes
(as well as an alias prop)


Cool Runnings,
Erne.
-- 
| e r |  Ernesto Giannotta
| n e |  Musical Box - a media store
                   




More information about the Valentina-beta mailing list