Hello guys, so i have a fundamental doubt. i been working with x++ for the past few days in project from work. but i dont get some of the functionality of x++.
practical example :
i have to parse a file(flat text .txt)
the first line of the file is the HEADER : 232828278928cjeueocjJefreymark2872
the second one is a paymente registry : 839829209302vjieujhc28290vmneike
and there are a few other lines that have other type of registries.
so my job is to parse every line(from char 0 to char 11 is the account number for example) and to save that info into variables(and update some tables). that part is okey.
between header and the other lines there is some common fields, what i d normally d do in c#
is create BASE class that has all the common fields and the method that parse those fields, then create a class HEADER,PAYMENTS and all the other lines that inherents from BASE so i d reuse the fields and the PARSE code instead of writing that every time.
the problem i found is that the classes in x++ dont seem to be made that way. every class is for a independent process and independent feature. is not used as a normal Object-oriented language d use it.
at least not the way i see it. could you tell how this is done properly in ax?hope you get what im trying to explain my english is not very good.
thanks
*This post is locked for comments