Reference > Functions reference > Container functions > HexEncode
 

HexEncode

Returns data as text in hexadecimal format.

Format 

HexEncode ( data )

Parameters 

data - any text expression or field.

Data type returned 

text

Originated in 

FileMaker Pro 16.0

Description 

This function converts text in text fields, variables, and calculations to UTF-8 format before encoding it (container data is not converted before encoding it).

Notes 

This function is not supported in runtime solutions and returns "?".

Example 1 

HexEncode ( "FileMaker" ) returns 46696C654D616B6572.

Example 2 

Converts the contents of a container field to hex-encoded text and stores it in a text field.

Set Field [ table::hexdata ; HexEncode ( table::container ) ]

Related topics 

Functions reference (category list)

Functions reference (alphabetical list)

About formulas

About functions

Defining calculation fields

Using operators in formulas