Utility functions / vCard utility functions (IMPORT FGL VCard) |
Extracts person's data from a string representing a vCard.
scan_person( source STRING ) RETURNING person VCPerson
This function parses the vCard string passed as parameter, extracts all information, and returns a record defined with the VCPerson type.
IMPORT FGL VCard MAIN DEFINE p VCard.VCPerson, f TEXT LOCATE f IN FILE arg_val(1) CALL VCard.scan_person(f) RETURNING p.* DISPLAY p.* END MAIN