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
MessageComposer.CanSendText
Checks whether we can send text.
| Component | Version | macOS | Windows | Linux | Server | FileMaker iOS SDK |
| MessageComposer | 7.3 | No | No | No | No | Yes |
Parameters
none
Result
Returns 1, 0 or error.
Description
Checks whether we can send text.Returns 1 if the user has set up the device for sending text only messages.
If the return value is 1, the client can set the recipients and body of the message.
If the return value is 0, the client may notify the user of the failure, or the client may open an SMS URL via open URL command.
This function can be called before having a composer initialized.
Examples
Check whether message can be send:
Set Variable [ $r ; Value: MBS( "MessageComposer.CanSendText" ) ]
If [ $r ≠ 1 ]
Show Custom Dialog [ "Can't send emails." ; "This iOS device is not configured to send text messages." ]
Exit Script [ Text Result: "failed" ]
End If
See also
Example Databases
Created 10th June 2017, last changed 17th June 2018
MessageComposer.CanSendSubject - MessageComposer.Dismiss
Feedback: Report problem or ask question.
Links
MBS Xojo blog