EndsWith Method

Published: 06 June 2024
on channel: Darrell Kreckel
7
0

The EndsWith method allows you to find a substring within a larger string just like StartWith. Really the only difference is that when it does the search it starts from the end of the target string. The Substring must be at the end of the target string. No exceptions.

Basically, you enter the substring and let the method determine if that substring or character is at the very end of the larger string. It returns true or false.

The following video shows you how to set this up simply. It then follows up with a practical example of how you might code a company of cartoon soldiers and assign them to one of four platoons. The EndsWith method helps you display only the soldiers in a particular platoon.

I’ve added a group box and a set of radio buttons to make this happen. Here’s how:


On this page of the site you can watch the video online EndsWith Method with a duration of hours minute second in good quality, which was uploaded by the user Darrell Kreckel 06 June 2024, share the link with friends and acquaintances, this video has already been watched 7 times on youtube and it was liked by 0 viewers. Enjoy your viewing!