scan_name()

Extracts name information from a string representing a vCard.

Syntax

scan_name(
   source STRING)
  RETURNS VCName
  1. source is the vCard string (version 3.0).

Usage

This function parses the vCard string passed as parameter to find person name data, and returns name information in a record defined with the VCName type.

Example

IMPORT FGL VCard
MAIN
  DEFINE n VCard.VCName,
         f TEXT
  LOCATE f IN FILE arg_val(1)
  CALL VCard.scan_name(f) RETURNING n.*
  DISPLAY n.*
END MAIN