Memory.PutString

Memory.PutString ( 

number  Memory,

string  Text,

number  Length,

number  Mode )

Description

Writes a string (including the ending '0') to the specified memory address. Range: unlimited.

Parameters

Memory

(number) Address of Memory.

Text

(string) Text String that filled in memory.

Length

(number) Number of char that you want filled in memory, if you want fill all char in text set it -1.

Mode

(number) Put string in memory as unicode, ascii or utf8 (this parameter now is optional and default is ascii).

Returns

Nothing.

Example

mem = Memory.Allocate(1024) Memory.PutString(mem, "Im in Your Memory", -1, "Ascii") Dialog.Message("", Memory.GetString(mem, -1, "Ascii")) -- Print Im in Your Memory Memory.PutString(mem, "Im in Your Memory", 7, "Ascii") Dialog.Message("", Memory.GetString(mem, -1, "Ascii")) -- Print Im in Y Memory.Free(mem)

See also:  Related Actions

Сайт управляется системой uCoz