TBooArray1: Razlika med redakcijama
Iz SDMS
Jump to navigationJump to searchm |
m |
||
| (2 vmesni redakciji istega uporabnika nista prikazani) | |||
| Vrstica 1: | Vrstica 1: | ||
| − | |||
Razred '''TBooArray1''' je namenjen enodimenzionalni tabeli boolean vrednosti. | Razred '''TBooArray1''' je namenjen enodimenzionalni tabeli boolean vrednosti. | ||
| + | |||
| + | ==Lastnosti== | ||
| + | Razred se naredi s funkcijo {{EL|Rutine|CreateBooArray1}}. | ||
| + | <source>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 tabelo</source> | ||
===Count=== | ===Count=== | ||
| − | Lastnost '''Count''' . | + | Lastnost '''Count''' spremeni velikost tabele. Vrednosti v tabeli se ohranijo. |
<declaration> | <declaration> | ||
Property|TBooArray1.Count | Property|TBooArray1.Count | ||
| − | Result|Long|. | + | Result|Long|Nova velikost tabele. |
</declaration> | </declaration> | ||
| − | |||
| − | === | + | ===Items=== |
| − | + | Lastnost '''Items''' dostopa posamezni vrednosti v tabeli. | |
<declaration> | <declaration> | ||
| − | + | Property|TBooArray1.Items | |
| + | Index|Long|Indeks celice. Prvi element ima indeks 0. | ||
| + | Result|Boolean|Vrednost celice. | ||
</declaration> | </declaration> | ||
| − | |||
| − | === | + | ==Opuščeno== |
| − | + | ||
| + | ===Destroy=== | ||
| + | Metoda '''Destroy''' dealocira razred. Metoda je opuščena in se priporoča uporaba funkcije {{EL|Rutine|Destroy}}. | ||
<declaration> | <declaration> | ||
| − | + | Method|TBooArray1.Destroy | |
| − | |||
| − | |||
</declaration> | </declaration> | ||
| − | |||
| − | [[Category:Razredi]] | + | [[Category:Razredi tabel|BooArr1]] |
| − | [[Category:SDMS Basic]] | + | [[Category:Razredi|BooArr1]] |
| + | [[Category:SDMS Basic|BooArr1]] | ||
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 |