Share via


DictType.setStringRight Method

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

Syntax

public void setStringRight(boolean right)

Run On

Called

Parameters

  • right
    Type: 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.

Examples

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); 
    } 
}

See Also

DictType Class

DictType.stringRight Method