次の方法で共有


DictType.Setstringright(Boolean) Method

Definition

Indicates the string justification for an extended data type that is based on a String data type.

public:
 virtual void Setstringright(bool right);
public virtual void Setstringright (bool right);
abstract member Setstringright : bool -> unit
override this.Setstringright : bool -> unit
Public Overridable Sub Setstringright (right As Boolean)

Parameters

right
Boolean

A Boolean value: true for a right-justified string and false for a left-justified string.

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 following example sets the justification of the AccountName extended data type.

server static public void Main(Args _args) 
{ 
    DictType dt; 
    dt = new DictType(ExtendedTypeNum(AccountName)); 
    if (dt) 
    { 
        dt.setStringRight(true); 
    } 
}

Applies to