How do I append first 20 characters of a string to a string?

Looks like this is crashing the app if lblMessages is empty to start with. How do I make this work?

I want to limit the text in lblMessages to the last two sets of characters received (I understand the BLE can only transfer 20 characters at a time)

Search this board for MTU

That lets you send longer messages.

You can use something like this:

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.