WindowsUserNotification.SetText
-------------------------------

Sets the text to show.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [WindowsUserNotification](component_WindowsUserNotification.md) [UserNotification](component_UserNotification.md) | [7.2](newinversion72.md) | ❌ No | ✅ Yes | ❌ No | ❌ No | ❌ No |

MBS( "WindowsUserNotification.SetText"; Notification; Index; Text ) 

**MBS**( **"WindowsUserNotification.SetText";** /\* Sets the text to show. \*/  
**$Notification**; /\* The reference number for the Windows User Notification. \*/   
**$Index**; /\* The index of the text.  
Range 0 to 3.e.g. 0 \*/   
**$Text**) /\* The text to use.e.g. "Hello World" \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| Notification | The reference number for the Windows User Notification. | $Notification |
| Index | The index of the text.   Range 0 to 3. | 0 |
| Text | The text to use. | "Hello World" |

### Result

Returns OK or error.

### Description

Sets the text to show.  
We can show up to three texts.  
### See also

- [WindowsUserNotification.GetTag](WindowsUserNotificationGetTag.md)
- [WindowsUserNotification.GetText](WindowsUserNotificationGetText.md)
- [WindowsUserNotification.NewNotification](WindowsUserNotificationNewNotification.md)
- [WindowsUserNotification.Release](WindowsUserNotificationRelease.md)
- [WindowsUserNotification.SetGroup](WindowsUserNotificationSetGroup.md)
- [WindowsUserNotification.SetRemoteId](WindowsUserNotificationSetRemoteId.md)
- [WindowsUserNotification.SetScriptName](WindowsUserNotificationSetScriptName.md)
- [WindowsUserNotification.SetTag](WindowsUserNotificationSetTag.md)
- [WindowsUserNotification.Setting](WindowsUserNotificationSetting.md)
- [WindowsUserNotification.XMLUsed](WindowsUserNotificationXMLUsed.md)

### Example Databases

- [Win Only/Windows User Notifications](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Win%20Only/Windows%20User%20Notifications.shtml#2ScriptAnchor_)

### Blog Entries

- [MBS FileMaker Advent calendar - Door 17 - User Notifications](https://www.mbsplugins.de/archive/2024-12-17/MBS_FileMaker_Advent_calendar_/monkeybreadsoftware_blog_filemaker)

This function is free to use.

Created 2nd April 2017 , last changed 3th January 2018

  
[WindowsUserNotification.SetTag](WindowsUserNotificationSetTag.md) - [WindowsUserNotification.Setting](WindowsUserNotificationSetting.md)

[HTML Version](WindowsUserNotificationSetText.shtml)