Topics   All   MacOS (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Deprecated   Guides   Examples   Videos
New in version: 9.3   9.4   9.5   10.0   10.1   10.2   10.3   10.4   10.5   10.6    Statistic    FMM    Blog  

SmartCard.SplitValues

Split values read from smart card.

Component Version macOS Windows Linux Server FileMaker iOS SDK
SmartCard 8.5 Yes Yes No Yes No
MBS( "SmartCard.SplitValues"; Input )   More

Parameters

Parameter Description Example
Input The hex encoded input string.

Result

Returns JSON or error.

Description

Split values read from smart card.
Files on smartcard can contain key/value data.
Returns JSON with an object containing numbers as text (key) and values as text.

Sample for JSON result:

{
"128":"MILLER, JOE",
"130":"19651201",
"131":"123456789012",
"132":"\u0001"
}
Starting with version 10.0 we hex encode binary data instead of assuming it's UTF-8.

Examples

Split file data:

Set Variable [ $json ; Value: MBS("SmartCard.SplitValues"; Card::FileData) ]
If [ MBS("IsError") ]
    Set Field [ Card::JSON ; "" ]
Else
    Set Field [ Card::JSON ; MBS("JSON.Colorize"; $json) ]
End If

See also

Example Databases

Blog Entries

Release notes

Created 19th October 2018, last changed 6th December 2019


SmartCard.SetAttribute   -   SmartCard.Status

Feedback: Report problem or ask question.




Links
MBS FileMaker Plugins

Start Chat