[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

microsoft.public.axapta.programming

get table instance from Tablename

Cordoba

10/11/2005 8:40:00 AM

Hello,

i'm looking for getting an instance of a Table by only knowing the name of
the Table.
I've already looked at Dicttable-Class but I didn't found any solution.

Thanks for help.


1 Answer

gverdellen

10/13/2005 6:51:00 AM

0

Hi,

The solution can be found in the dictTable class and the method tablename2id.
Here is an example:
dictTable dt;
SalesTable salestable;
;
dt = new DictTable(tablename2id("SalesTable"));
salestable = dt.makeRecord();

Regards,

Gerard Verdellen
Pulse Automation Experts bv


"Cordoba" wrote:

> Hello,
>
> i''m looking for getting an instance of a Table by only knowing the name of
> the Table.
> I''ve already looked at Dicttable-Class but I didn''t found any solution.
>
> Thanks for help.
>
>