SmartCard.Valid
---------------

Determines whether a smart card context handle is valid.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [SmartCard](component_SmartCard.md) | [6.3](newinversion63.md) | ✅ Yes | ✅ Yes | ❌ No | ✅ Yes, on macOS and Windows | ❌ No |

MBS( "SmartCard.Valid"; SmartCardContext ) 

**MBS**( **"SmartCard.Valid";** /\* Determines whether a smart card context handle is valid. \*/  
**$SmartCardContext**) /\* The smartcard context reference number. \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| SmartCardContext | The smartcard context reference number. | $SmartCardContext |

### Result

Returns 1, 0 or error.

### Description

Determines whether a smart card context handle is valid.  
Value is 1 if valid or 0 if not.  
### See also

- [SmartCard.Init](SmartCardInit.md)
- [SmartCard.Transmit](SmartCardTransmit.md)

### Example Databases

- [SmartCard/Belgian EID Reader](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/SmartCard/Belgian%20EID%20Reader.shtml#4ScriptAnchor_)
- [SmartCard/SmartCard ReadFile](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/SmartCard/SmartCard%20ReadFile.shtml#1ScriptAnchor_)
- [SmartCard/SmartCard Signatures](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/SmartCard/SmartCard%20Signatures.shtml#1ScriptAnchor_)

### Blog Entries

- [Talking to a SmartCard in FileMaker Pro](https://www.mbsplugins.de/archive/2016-08-03/Talking_to_a_SmartCard_in_File/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 13th June 2016 , last changed 18th June 2016

  
[SmartCard.TransmitReceiveHeader](SmartCardTransmitReceiveHeader.md) - [Social.AccountProperty](SocialAccountProperty.md)

[HTML Version](SmartCardValid.shtml)