GetBinaryStorageData

From OriginLab Wiki

(Difference between revisions)(Link to this page as [[OriginCOM:OriginObject-GetBinaryStorageData]])
Jump to: navigation, search
Revision as of 05:19, 25 June 2008 (edit)
Fisher (Talk | contribs)

← Previous diff
Revision as of 10:01, 20 August 2008 (edit) (undo)
Uploader (Talk | contribs)

Next diff →
Line 1: Line 1:
{{DISPLAYTITLE:GetBinaryStorageData}} {{DISPLAYTITLE:GetBinaryStorageData}}
 +[[category:PM]]
==Description== ==Description==
Line 9: Line 10:
</pre></code> </pre></code>
<code><pre> <code><pre>
-C++: Variant GetBinaryStorageData(LPCSTR Name, Variant format )+C++: _variant_t GetBinaryStorageData(LPCSTR Name, _variant_t format )
</pre></code> </pre></code>
<code><pre> <code><pre>
-C#: Variant GetBinaryStorageData(string Name, Variant format )+C#: var GetBinaryStorageData(string Name, var format )
</pre></code> </pre></code>

Revision as of 10:01, 20 August 2008


Contents

Description

Syntax

VB: Function GetBinaryStorageData(Name As ByVal String, [ format As ByVal Object ] ) As Object
C++: _variant_t GetBinaryStorageData(LPCSTR Name, _variant_t format )
C#: var GetBinaryStorageData(string Name, var format )

Parameters

Name
--
format
--

Return

Remark

Examples

Dim myobj As Origin.Application
 
Dim mypage As Origin.Page
 
Dim myWks As Origin.Worksheet
 
Dim myCol As Origin.Column
 
Dim strStroage As String
 
'Open a new instance of the Origin application
Set myobj = GetObject("", "Origin.ApplicationSI")
 
'
myobj.Execute ("doc -mc 1")
 
myobj.NewProject
 
Set mypage = myobj.Pages(0)
 
'base on 0
Set myWks = mypage.Layers(0)
 
'start from 0
Set myCol = myWks.Columns(1)
 
strStorage = "Data"
 
'set BinaryStorageData
 
Set myRng = Range("C20:C30")
 
'get GetBinaryStroageData
myRng.Value = myCol.GetBinaryStorageData(strStroage, STGDATAFMT_BLOB)

Version Information

8.0SR2

See Also