Skip to content

ZGet function

Xusinboy Bekchanov edited this page Oct 30, 2023 · 2 revisions

Dereferences a ZString pointer to String.

Syntax

Declare Function ZGet(ByRef subject As ZString Ptr) As String

The ZGet function syntax has these named arguments:

Part Description
subject Required. ZString Pointer to dereference. If the value is NULL, zero-length string ("") is returned.

Example

This example shows how to use the ZGet function.

#include "mff/UString.bi"

Dim p As ZString Ptr

Print ZGet(p)

p = Allocate(SizeOf(ZString) * 5)

*p = "Good"

Print ZGet(p)

Delete p

Sleep

See also

Clone this wiki locally