TBooArray2: Razlika med redakcijama
Iz SDMS
Jump to navigationJump to searchm (Nova stran z vsebino: {{Work}} Razred '''TBooArr2''' je namenjen dvodimenzionalni tabeli boolean vrednosti. ===Count1=== Lastnost '''Count1''' . <declaration> Property|TBooArray2.Count1 Result|Long...) |
m |
||
| (2 vmesni redakciji istega uporabnika nista prikazani) | |||
| Vrstica 1: | Vrstica 1: | ||
| − | + | Razred '''TBooArray2''' je namenjen dvodimenzionalni tabeli boolean vrednosti. | |
| − | Razred ''' | + | |
| + | ==Lastnosti== | ||
| + | Razred se naredi s funkcijo {{EL|Rutine|CreateBooArray2}}. | ||
| + | <source>Dim BA As TBooArray2 | ||
| + | BA = CreateBooArray2 (3, 2) // Alocira tabelo s 3x2 elementi | ||
| + | BA.Items(0,0) = True // Nastavi element | ||
| + | BA.Items(1,0) = False // Nastavi element | ||
| + | BA.Items(2,0) = False // Nastavi element | ||
| + | BA.Items(2,1) = True // Nastavi element | ||
| + | If BA.Items(1,0) Then // Uporabi vrednost elementa | ||
| + | BA.Count1 = 2 // Spremeni velikost tabele v 2x2 | ||
| + | BA.Count2 = 3 // Spremeni velikost tabele v 2x3 | ||
| + | EndIf | ||
| + | Destroy (BA) // Dealocira tabelo</source> | ||
===Count1=== | ===Count1=== | ||
| − | Lastnost '''Count1''' . | + | Lastnost '''Count1''' spremeni velikost prve dimenzije tabele. Vrednosti v tabeli se ohranijo. |
<declaration> | <declaration> | ||
Property|TBooArray2.Count1 | Property|TBooArray2.Count1 | ||
| − | Result|Long|. | + | Result|Long|Nova velikost tabele. |
</declaration> | </declaration> | ||
| − | |||
===Count2=== | ===Count2=== | ||
| − | Lastnost '''Count2''' . | + | Lastnost '''Count2''' spremeni velikost druge dimenzije tabele. Vrednosti v tabeli se ohranijo. |
<declaration> | <declaration> | ||
Property|TBooArray2.Count2 | Property|TBooArray2.Count2 | ||
| − | Result|Long|. | + | Result|Long|Nova velikost tabele. |
</declaration> | </declaration> | ||
| − | |||
| − | === | + | ===Items=== |
| − | + | Lastnost '''Items''' dostopa posamezni vrednosti v tabeli. | |
<declaration> | <declaration> | ||
| − | + | Property|TBooArray2.Items | |
| + | Index1|Long|Prvi indeks celice. Prvi element ima indeks 0. | ||
| + | Index2|Long|Drugi 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|TBooArray2.Destroy | |
| − | |||
| − | |||
| − | |||
</declaration> | </declaration> | ||
| − | |||
| − | [[Category:Razredi]] | + | [[Category:Razredi tabel|BooArr2]] |
| − | [[Category:SDMS Basic]] | + | [[Category:Razredi|BooArr2]] |
| + | [[Category:SDMS Basic|BooArr2]] | ||
Trenutna redakcija s časom 22:58, 29. december 2010
Razred TBooArray2 je namenjen dvodimenzionalni tabeli boolean vrednosti.
Lastnosti
Razred se naredi s funkcijo Rutine.CreateBooArray2.
Dim BA As TBooArray2
BA = CreateBooArray2 (3, 2) // Alocira tabelo s 3x2 elementi
BA.Items(0,0) = True // Nastavi element
BA.Items(1,0) = False // Nastavi element
BA.Items(2,0) = False // Nastavi element
BA.Items(2,1) = True // Nastavi element
If BA.Items(1,0) Then // Uporabi vrednost elementa
BA.Count1 = 2 // Spremeni velikost tabele v 2x2
BA.Count2 = 3 // Spremeni velikost tabele v 2x3
EndIf
Destroy (BA) // Dealocira tabeloCount1
Lastnost Count1 spremeni velikost prve dimenzije tabele. Vrednosti v tabeli se ohranijo.
| Property TBooArray2.Count1 As Long | ||
| Result | Long | Nova velikost tabele. |
Count2
Lastnost Count2 spremeni velikost druge dimenzije tabele. Vrednosti v tabeli se ohranijo.
| Property TBooArray2.Count2 As Long | ||
| Result | Long | Nova velikost tabele. |
Items
Lastnost Items dostopa posamezni vrednosti v tabeli.
| Property TBooArray2.Items (Index1, Index2 As Long) As Boolean | ||
| Index1 | Long | Prvi indeks celice. Prvi element ima indeks 0. |
| Index2 | Long | Drugi 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 TBooArray2.Destroy |