COPY_TO_MEMORY (FUN)ΒΆ

FUNCTION COPY_TO_MEMORY : UDINT

Copies an IStringRepresentation into a desired memory block.
Type of the itfString can be IBuilder, IString or just an IStringRepresentation.
InOut:

Scope

Name

Type

Initial

Comment

Return

COPY_TO_MEMORY

UDINT

Input

itfString

IStringRepresentation

String interface, which is written in memory

pbyMemory

POINTER TO BYTE

Pointer to the first byte of memory block

udiSize

UDINT

Size of the memory block in bytes

eEncoding

ENCODING

ENCODING.UTF8

Encoding type, default value is utf8

Output

eErrorID

ERROR

Check error output value for better diagnostics