Share via


AOTTableFieldList.addReal(String) Method

Definition

Adds a new field of the real type to the list of fields for the current table.

public:
 virtual void addReal(System::String ^ _name);
[Microsoft.Dynamics.BusinessPlatform.SharedTypes.InternalUseOnly]
public virtual void addReal (string _name);
[<Microsoft.Dynamics.BusinessPlatform.SharedTypes.InternalUseOnly>]
abstract member addReal : string -> unit
override this.addReal : string -> unit
Public Overridable Sub addReal (_name As String)

Parameters

_name
String

The name of the field to add.

Attributes
Microsoft.Dynamics.BusinessPlatform.SharedTypes.InternalUseOnlyAttribute

Remarks

If the supplied name coincides with an existing field in the field list, an integer is appended to the name of the new field to make the field name unique. It is up to the developer to make sure that the name is not a reserved word; the method will not throw an error if a reserved word is specified. You can use the AOTfindChild method to determine whether a field name is already being used.

The following example adds the NewReal and NewReal1 fields, which is of the real type, to the list of fields for the TutorialJournalName table.

AOTTableFieldList tfl = infolog.findNode( 
    '\\Data Dictionary\\Tables\\TutorialJournalName\\Fields'); 
// Add the field NewReal. 
tfl.addReal('NewReal'); 
// Add the field NewReal1. 
tfl.addReal('NewReal');

Applies to