GetMemory
Get named binary storage into vector of bytes
BOOL GetMemory( LPCSTR lpcszName, vector<byte> & vb )
TRUE if success FALSE if name storage does not exist
EX1
// Use the Import Wizard to import some data into a worksheet // Run the example void OriginObject_GetMemory_Ex1() { Page pg = Project.Pages(); if(!pg) return; vector<byte> vb; if(pg.GetMemory("Files", vb)) // Get the "Files" storage which is created by the Import Wizard { string strContents; if(strContents.SetBytes(vb)) strContents.Write(WRITE_COMPILER_OUTPUT); // Output the storage to CodeBuilder's Output window } }
OriginObject::SetMemory
origin.h