11.07.2015 Views

Caché ObjectScript Reference - InterSystems Documentation

Caché ObjectScript Reference - InterSystems Documentation

Caché ObjectScript Reference - InterSystems Documentation

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>Caché</strong> <strong>ObjectScript</strong> Commands• VIEW offset:mode:length:newvalue places newvalue in the memory location identifiedby offset, mode, and length.You can examine data in memory with the $VIEW function.Note:<strong>InterSystems</strong> recommends that you avoid use of the VIEW command. When usedin any environment, it can corrupt memory structures.ArgumentspcAn optional postconditional expression. <strong>Caché</strong> executes the command if the postconditionalexpression is true (evaluates to a non-zero numeric value). <strong>Caché</strong> does not execute the commandif the postconditional expression is false (evaluates to zero). For further details, referto Command Postconditional Expressions in Using <strong>Caché</strong> <strong>ObjectScript</strong>.blockA block location, specified as an integer. If block is a positive integer, VIEW reads thatnumber block into the view buffer. If block is a negative integer, VIEW writes the blockcurrently in the view buffer to that block address. The block and theoffset:mode:length:newvalue arguments are mutually exclusive.offsetAn offset, in bytes, from a base address within the memory region specified by mode.modeThe memory region whose base address will be used to calculate the data to be modified. SeeModifying Data in Memory for a description of the possible values.lengthThe length of the data to be modified.Specify the number of bytes as an integer from 1-4. You can also use the letter C to indicatea four-byte address or the letter P to indicate a four byte word address). You must specifyboth the P or C and the positive integer in double quotes.If newvalue defines a string, specify the number of bytes as a negative integer from 1 through510. If the length of newvalue exceeds this number, <strong>Caché</strong> ignores the extraneous characters.If the length of newvalue is less than this number, <strong>Caché</strong> stores the supplied characters andleaves the rest of the memory location unchanged.152 <strong>Caché</strong> <strong>ObjectScript</strong> <strong>Reference</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!