2.1.28 NewDataRange


Description

Syntax

VB: Function NewDataRange([ range As ByVal Object ], [ Name As ByVal Object ] ) As DataRange
C++: DataRange NewDataRange(_variant_t range, _variant_t Name )
C#: DataRange NewDataRange(var range, var Name )

Parameters

range
--
Name
--

Return

Remark

Examples

Python

import OriginExt as O
app = O.Application(); app.Visible = app.MAINWND_SHOW
pageName = app.CreatePage(app.OPT_WORKSHEET)
app.PutWorksheet(pageName, [[5,6,7,8], [2,3,4,5]])
dr = app.NewDataRange("[" + pageName + "]1!Col(A)", "testRange")
print(dr.GetData())

Version Information

8.0SR2

See Also