2.1.37 PageString
Contents
Description
The PageString property allows access to Origin page textual properties or Origin Notes content.
Syntax
VB: Property Get/Let PageString(Name As ByVal String, [ LTString As ByVal Object ] ) As String
C++: LPCSTR PageString(LPCSTR Name, _variant_t LTString )
C#: string PageString(string Name, var LTString )
Parameters
- Name
- Name of the Origin page to access.
- LTString
- --
Remark
This was implemented before Origin 8 introduced more extensive object oriented support.
Examples
VBA
'Assumes Data1 exist Dim oApp As Origin.ApplicationSI Set oApp = GetObject("", "Origin.ApplicationSI") oApp.PageString("Data1", "Page.label$") = "text"
Python
import OriginExt as O app = O.Application(); app.Visible = app.MAINWND_SHOW pageName = app.CreatePage(app.OPT_WORKSHEET) app.PutPageString(pageName, "testPageStr$", "testPageValue") print(app.GetPageString(pageName, "testPageStr$"))
Version Information
8.0SR2