EndsWith Method

Pubblicato il: 06 giugno 2024
sul canale di: 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:


In questa pagina del sito puoi guardare il video online EndsWith Method della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Darrell Kreckel 06 giugno 2024, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 7 volte e gli è piaciuto 0 spettatori. Buona visione!