Logo

Programming-Idioms

History of Idiom 169 > diff from v71 to v72

Edit summary for version 72 by EvilGenius:
New VB implementation by user [EvilGenius]

Version 71

2019-09-28, 03:36:39

Version 72

2019-09-29, 01:31:03

Idiom #169 String length

Assign to integer n the number of characters of string s.

This can be different from the number of bytes of s.

Illustration

Idiom #169 String length

Assign to integer n the number of characters of string s.

This can be different from the number of bytes of s.

Illustration
Extra Keywords
size characters chars number runes
Extra Keywords
size characters chars number runes
Code
Dim temp As String = "1234567890"
Console.WriteLine(temp.Length)