Hi all! Well, I know that a Text/Code-String is an Array-of-Chars, so that one can assign
TextVar[i] := CharVar
or that I can access each single letter of a string, e.g. TextVar := ‘Hello’ so TextVar[1] is ‘H’. But now I want to create an Array-of-Textstrings [:0] I tried this:
Jörg: Works without any error in Navi 3.10 too. Maybe you wanted to say this: In a single TextVar you can address a single char by just doing this TextVar := ‘Donaudampfschifffahrtskapitän’; CharVar := TextVar [ 4 ]; Message CharVar shows “a”. Textvar as an array of 10: TextVar [ 1 ] := ‘Donaudampfschifffahrtskapitän Müller’; TextVar [ 2 ] := ‘Donaudampfschifffahrtskapitän Meyer’; … Now you want to address the 32th character in Textvar [ 1 ] which should result in an “ü”, right? Regards Alarich
Jörg, assignment to the array’s components works fine on my 2.6 - however, “double indexing” (i.e. ItemNoVar[1][3]) to retrieve single characters gives an error. You need to assign ItemNoVar[1] to an intermediate variable of Code20, of which you can then take element [3].