Reference for the BALTENSPERGER programming language, an art project of Stefan Baltensperger

Class

Satz

Name

charAt()

Examples
Satz str = "CCCP";
Buechstabe c1 = str.Buechstabe_ide_Position(0);
Buechstabe c2 = str.Buechstabe_ide_Position(1);
Buechstabe c3 = str.Buechstabe_ide_Position(str.laengi()-1);
schrib_uf_e_neui_Linie(c1 + ":" + c2 + ":" + c3);  // Prints 'C:C:P'
Description Returns the character at the specified index. An index ranges from 0 to the length of the string minus 1. The first character of the sequence is at index 0, the next at index 1, etc.
Syntax
charAt(index)
Parameters
index Ganzizahl: the index of the character
Usage Web & Application
Stefan Baltensperger 2009

Creative Commons License