Vasanth Arivali's Blog

Posts Tagged ‘find table name through x++

Hi,

Here i write a sample code to find the Table Name of Ax Tables using the TableId.

static void findTables(Args _args)

{

Dictionary            dictionary;

TableId                                  tableId;

tableName         tableName;

;

dictionary            =             new Dictionary();

// tableId             =             dictionary.tableNext(0);

tableId                  =             359;       //366; //62;

tableName         =             dictionary.tableName(tableId);

info(strfmt(“%1 – %2”,int2str(tableId), tableName));

//while (tableId)

//{

// tableId = dictionary.tableNext(tableId);

// tableName = dictionary.tableName(tableId);

//}

}

Thank You,

Vasanth Arivali.


Welcome

Categories

Join 12 other subscribers