i was going thru the axapta training materials:
Difference between Tables & classes
Fields in tables can be referred to directly, for example in a report.
Variables in a method can only be referred to by returning the values.
here, what does the second line explain?
also, can anybody explain the following:
Methods on different objects can also be called from the same table.
Smile !! it increases your face value.
0
Comments
Well i'll try
1. What they try to tell you is that fields (variables in tables) you can address directly table.field = x
When you use variables in classes you can't access them by the same notation : class.variable = x;
You either have to make global variables and call a "parm" methode or send the values along in a parameter to the methode you call from a class.
f.eks.
CustTable.Accountnum = "accountnumber";
opposed to :
SalesFormLetter_Invoice.mayJournalBePosted("salesorder");
The second part i'm no sure...
Yours
Wilco