SM.Write |
result = SM.Write( hHandle AS HANDLE, variable-name AS STRING, value AS VARIANT ) AS INTEGER result = SM.Write( hHandle AS HANDLE, BYREF array AS REAL ) AS INTEGER
Write a value to a variable in the shared memory pool specified by the handle. Second format will write the contents of an array to the memory pool. Both formats will return result > 0 for success.
Example:
DIM handle AS INTEGER
' Create a shared memory pool of 1 MB handle = SM.Create( "big_pool", 1024 )
' Write 1 to variable Nils. Create variable if doesn't exist SM.Write( handle, "Nils", 1 )
' Close pool SM.Close( handle )
'''''''''''''''''''''''''''''''''''''''''''''''''''' ' Second format
DIM arr( 10 ) AS REAL SM.Write( handle, REF( arr ) )
|