Skip to content

StoreW

See Also: Memory Management Functions

Purpose

Places a one word value in memory using its address and an offset.

Return Type

Boolean

Syntax

(StoreW({pMemory}, {iOffset}, {iValue}))

Parameters

  • {pMemory}: A Pointer variable that is set equal to the block of memory.
  • {iOffset}: An integer variable that contains the offset within the block of memory where the value will be stored.
  • {iValue}: The value that will be stored.

What It Does

Stores the given value, {iValue}, in one word of a memory block using its address and a given offset. Using the StoreW function with invalid parameters will likely cause your program to crash.

Example

Function PutMemoryWord Address aPointer Integer iOffset Integer iValue Returns Boolean
    Boolean bResult
    Move (StoreW(aPointer, iOffset, iValue)) to bResult
    Function_Return bResult
End_Function