Ascii()

Syntax

*Buffer = Ascii(String$)
Description
Creates an Ascii representation of the string. When no more needed, the buffer needs to be freed with FreeMemory().

Parameters

String$ The string to convert.

Return value

The Ascii representation of the string.

Remarks

This function is mainly useful when interacting with third-party libraries which requiers Ascii as input. Pseudotype 'p-ascii' can also be used to automated the converting process when importing external functions.

Example

  *Ascii = Ascii("Hélé")
  ShowMemoryViewer(*Ascii, 6)

See Also

UTF8()

Supported OS

All

<- Asc() - String Index - Bin() ->