AX2009 - str data type limit

雨燕双飞 提交于 2019-12-11 06:34:53

问题


Is there any limit on the size of the str data type in AX2009?

There is also the extended data type (Memo) which can be inherited by extended data types. What is the difference between a extended data type inherited by (Memo) and the str data type? As is not (Memo) also just a str data type?


回答1:


For the limit: Yes and no.
For practical purposes it is unlimited but the X++ runtime has a certain limit which you can find out by feeding large values to the strrep function until you will encounter errors.

All EDTs based on strings are essentially 'mapped' to str in X++ but result in different column types in the database backend or different control properties when rendered in the UI.
So when considering X++, you can treat a memo EDT as the same as str but please notice that they come from different 'realms' of AX - str is the string type of X++ which is used for building up the business logic in AX and memo is the base EDT for unlimited strings when modelling the database and UI part of AX.




回答2:


The str datatype cannot contain more than roundabout 25.5 Million characters. You will get an error "Error executing code: Insufficient memory to run script." if you exceed that number.

At the moment I cannot think of any possible use scenario that will exhaust that length...



来源:https://stackoverflow.com/questions/39200235/ax2009-str-data-type-limit

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!