Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Guides   Examples
New in version: 7.2   7.3   7.4   7.5   8.0   8.1   8.2   8.3   8.4   8.5    Statistic  

SmartCard.SplitValues

Split values read from smart card.

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

Parameters

Parameter Description Example value
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"
}

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

Created 19th October 2018, last changed 19th October 2018


SmartCard.SetAttribute   -   SmartCard.Status

Feedback: Report problem or ask question.




Links
MBS Xojo tutorial videos