Column::PutStringArray

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

Put (copy) the contents of a StringArray to a Column.

Syntax

PutStringArray(vs, Offset, CheckCvtNumber)

Parameters

vs
StringArray to copy
Offset
Starting row number of destination Dataset
CheckCvtNumber
True will check each entry and if the string is in numeric form, then put into the corresponding cell as Numeric. False will put into cells as text regardless

Return

Returns True on success and False on failure.

Examples

import PyOrigin
M = ['a','b','c']
PyOrigin.FindWorksheet('[Book1]Sheet1').Columns(0).PutStringArray(M)
Array=PyOrigin.FindWorksheet('[Book1]Sheet1').Columns(0).GetStringArray(0,-1,2,1)
print(Array)

See Also

Column::GetStringArray