8.1.3.11 DataObject::GetFormula

It is recommended that you switch to the originpro package. PyOrigin is primarily for users who need to work with Origin version prior to 2021.

Description

Get the formula of the DataObject.

Syntax

GetFormula()

Parameters

Return

String with the DataObject formula.

Examples

import PyOrigin
wks=PyOrigin.WorksheetPages('Book1').Layers(0)
Col=wks.Columns(0)
Col.SetFormula('ran()')
Col.ExecuteFormula()   
print(Col.GetFormula())

See Also

DataObject::SetFormula