2.31.1 Add


Description

Syntax

VB: Function Add([ templateName As ByVal Object ], [ flag As ByVal Object ] ) As Note
C++: Note Add(_variant_t templateName, _variant_t flag )
C#: Note Add(var templateName, var flag )

Parameters

templateName
--
flag
--

Return

Remark

Examples

VB

    Sub Notes_Add()
        Dim app As Origin.IOApplication
        Dim nts As Origin.Notes
        Dim nt As Origin.Note

        app = New Origin.ApplicationSI
        nts = app.Notes

        nt = nts.Add("", "") 'create a new note page with default setting
        nt.Name = "Origin Sample Note" 'rename it
        nt.Text = "Hello Origin" 'set note's text

    End Sub

Version Information

8.0SR2

See Also