Develop > Programming > System Language reference > List: RAD functions > RAD function: recordtostring

RAD function: recordtostring

A RAD function that uses the value of a field from an array and appends that value to a string.

Function
recordtostring
Format
recordtostring($string, $file, $arrayofnames, $sep)
Parameters
The following values are valid for the recordtostring function:
ParameterDescription
$stringThe string to which the field value is appended.
$fileThe current file.
$arrayofnamesThe array from which the field is taken.
$sepA separator character.

Factors

Event Services uses the caret character (^) as a default separator. You can use the recordtostring function to build an eventout string.

Example

recordtostring("", $file, {"location", "location.name"}, "^")

Where:

The value of $file is a location record in which location=Advantage HQ, and location.name=downtown. After execution, the value of $string will contain Advantage HQ^downtown.