type

What kind of data is object inventTable??

it is a class

But in the Form where InventTable is in Data Sources.

and we have If(inventTable) What Type is this inventTable

But in the Form where InventTable is in Data Sources.

and we have If(inventTable)

{

}

What Type is this inventTable

Inventtable is a class and inventTable is a object of it is class and in the datasource is table InventTable and in AX Tables can be used exactly as class

we can write like

InventTable inventable;

//InventTable is a class cum Table

//inventtable is its instance or object

;

if(inventable)

{

//do something

}

What type is inventable?? If need to boolen value so what type is inventtable??

Your original question can’t be answered without additional details. If you have a variable of some name, it can have absolutely any type. You can, for example, declare something like RunBase inventTable;.

Fortunately you made it clearer in your subsequent replies. If you have a form datasource called InventTable with underlying table InventTable, AX automatically creates a variable for the table (InventTable type) with the same name as the data source (inventTable, in your case).

You can see variable types in the debugger. Get used to it and you’ll be able to find the answer by yourself every time from now.