Site icon Learn Delphi

Learn How Not To Use Square Brackets in Your Program In This Learn Delphi Video

Obscure (. .) syntax - Delphi #132

Encountering strange or obscure syntax is not uncommon when coding a program or working on a windows app development project. You might come across these codes from time to time. Interestingly, Alister Christie of Learn Delphi TV recently discovered another obscure yet interesting syntax that has something to deal with square brackets. In programming, brackets are all part of the syntax of the language.

Square brackets, in particular, are used to index (access) elements in arrays and also Strings. Interestingly, according to this Learn Delphi video, there is actually an alternative method. This video will demonstrate how not to use square brackets to use arrays. Instead, of square brackets, you can substitute them with dots and open and close parentheses. Feel free to watch the tutorial above and see how this obscure syntax works.

Exit mobile version