TBooArray1: Razlika med redakcijama
Iz SDMS
Jump to navigationJump to searchm |
m |
||
| Vrstica 1: | Vrstica 1: | ||
| − | Razred '''TBooArray1''' je namenjen enodimenzionalni tabeli boolean vrednosti. Razred se naredi s funkcijo {{EL|Rutine|CreateBooArray1}}. | + | Razred '''TBooArray1''' je namenjen enodimenzionalni tabeli boolean vrednosti. |
| + | |||
| + | ==Lastnosti== | ||
| + | Razred se naredi s funkcijo {{EL|Rutine|CreateBooArray1}}. | ||
<source>Dim BA As TBooArray1 | <source>Dim BA As TBooArray1 | ||
BA = CreateBooArray1 (3) // Alocira tabelo s tremi elementi | BA = CreateBooArray1 (3) // Alocira tabelo s tremi elementi | ||
| Vrstica 9: | Vrstica 12: | ||
EndIf | EndIf | ||
Destroy (BA) // Dealocira tabelo</source> | Destroy (BA) // Dealocira tabelo</source> | ||
| − | |||
| − | |||
===Count=== | ===Count=== | ||
Trenutna redakcija s časom 22:36, 29. december 2010
Razred TBooArray1 je namenjen enodimenzionalni tabeli boolean vrednosti.
Lastnosti
Razred se naredi s funkcijo Rutine.CreateBooArray1.
Dim BA As TBooArray1
BA = CreateBooArray1 (3) // Alocira tabelo s tremi elementi
BA.Items(0) = True // Nastavi prvi element
BA.Items(1) = False // Nastavi drugi element
BA.Items(2) = False // Nastavi tretji element
If BA.Items(1) Then // Uporabi vrednost drugega elementa
BA.Count = 2 // Spremeni velikost tabele
EndIf
Destroy (BA) // Dealocira tabeloCount
Lastnost Count spremeni velikost tabele. Vrednosti v tabeli se ohranijo.
| Property TBooArray1.Count As Long | ||
| Result | Long | Nova velikost tabele. |
Items
Lastnost Items dostopa posamezni vrednosti v tabeli.
| Property TBooArray1.Items (Index As Long) As Boolean | ||
| Index | Long | Indeks celice. Prvi element ima indeks 0. |
| Result | Boolean | Vrednost celice. |
Opuščeno
Destroy
Metoda Destroy dealocira razred. Metoda je opuščena in se priporoča uporaba funkcije Rutine.Destroy.
| Method TBooArray1.Destroy |