DictType.Setstringlen(Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Sets the string length for an extended data type that is based on the string data type.
public:
virtual void Setstringlen(int stringLen);
public virtual void Setstringlen (int stringLen);
abstract member Setstringlen : int -> unit
override this.Setstringlen : int -> unit
Public Overridable Sub Setstringlen (stringLen As Integer)
Parameters
- stringLen
- Int32
An integer that indicates the string length.
Remarks
This method lets you create, read, update, and delete X++ code and metadata. Make sure that the user has access to the development security key (SysDevelopment) before this API is called. The string length corresponds to the StringSize property for the extended data type in the AOT.
The following example sets the StringSize property to 10 for the AccountName extended data type.
server static public void Main(Args _args)
{
DictType dt;
dt = new DictType(ExtendedTypeNum(AccountName));
if (dt)
{
dt.setStringLen(10);
}
}