TBooArray3: Razlika med redakcijama
Iz SDMS
Jump to navigationJump to searchm (Nova stran z vsebino: {{Work}} Razred '''TBooArr3''' je namenjen trodimenzionalni tabeli boolean vrednosti. ===Count1=== Lastnost '''Count1''' . <declaration> Property|TBooArray3.Count1 Result|Long...) |
m |
||
| (3 vmesne redakcije istega uporabnika niso prikazane) | |||
| Vrstica 1: | Vrstica 1: | ||
| − | + | Razred '''TBooArray3''' je namenjen trodimenzionalni tabeli boolean vrednosti. | |
| − | Razred ''' | + | |
| + | ==Lastnosti== | ||
| + | Razred se naredi s funkcijo {{EL|Rutine|CreateBooArray3}}. | ||
| + | <source>Dim BA As TBooArray3 | ||
| + | BA = CreateBooArray3 (3, 2, 2) // Alocira tabelo s 3x2x2 elementi | ||
| + | BA.Items(0,0,0) = True // Nastavi element | ||
| + | BA.Items(1,0,0) = False // Nastavi element | ||
| + | BA.Items(2,0,1) = False // Nastavi element | ||
| + | BA.Items(2,1,0) = True // Nastavi element | ||
| + | If BA.Items(2,0,1) Then // Uporabi vrednost elementa | ||
| + | BA.Count1 = 2 // Spremeni velikost tabele v 2x2x2 | ||
| + | BA.Count2 = 3 // Spremeni velikost tabele v 2x3x2 | ||
| + | BA.Count3 = 5 // Spremeni velikost tabele v 2x3x5 | ||
| + | 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|TBooArray3.Count1 | Property|TBooArray3.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|TBooArray3.Count2 | Property|TBooArray3.Count2 | ||
| − | Result|Long|. | + | Result|Long|Nova velikost tabele. |
</declaration> | </declaration> | ||
| − | |||
===Count3=== | ===Count3=== | ||
| − | Lastnost '''Count3''' . | + | Lastnost '''Count3''' spremeni velikost tretje dimenzije tabele. Vrednosti v tabeli se ohranijo. |
<declaration> | <declaration> | ||
Property|TBooArray3.Count3 | Property|TBooArray3.Count3 | ||
| − | Result|Long|. | + | Result|Long|Nova velikost tabele. |
</declaration> | </declaration> | ||
| − | |||
| − | === | + | ===Items=== |
| − | + | Lastnost '''Items''' dostopa posamezni vrednosti v tabeli. | |
<declaration> | <declaration> | ||
| − | + | Property|TBooArray3.Items | |
| + | Index1|Long|Prvi indeks celice. Prvi element ima indeks 0. | ||
| + | Index2|Long|Drugi indeks celice. Prvi element ima indeks 0. | ||
| + | Index3|Long|Tretji 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|TBooArray3.Destroy | |
| − | |||
| − | |||
| − | |||
| − | |||
</declaration> | </declaration> | ||
| − | |||
| − | |||
| − | [[Category:Razredi]] | + | [[Category:Razredi tabel|BooArr3]] |
| − | [[Category:SDMS Basic]] | + | [[Category:Razredi|BooArr3]] |
| + | [[Category:SDMS Basic|BooArr3]] | ||
Trenutna redakcija s časom 00:36, 22. januar 2011
Razred TBooArray3 je namenjen trodimenzionalni tabeli boolean vrednosti.
Lastnosti
Razred se naredi s funkcijo Rutine.CreateBooArray3.
Dim BA As TBooArray3
BA = CreateBooArray3 (3, 2, 2) // Alocira tabelo s 3x2x2 elementi
BA.Items(0,0,0) = True // Nastavi element
BA.Items(1,0,0) = False // Nastavi element
BA.Items(2,0,1) = False // Nastavi element
BA.Items(2,1,0) = True // Nastavi element
If BA.Items(2,0,1) Then // Uporabi vrednost elementa
BA.Count1 = 2 // Spremeni velikost tabele v 2x2x2
BA.Count2 = 3 // Spremeni velikost tabele v 2x3x2
BA.Count3 = 5 // Spremeni velikost tabele v 2x3x5
EndIf
Destroy (BA) // Dealocira tabeloCount1
Lastnost Count1 spremeni velikost prve dimenzije tabele. Vrednosti v tabeli se ohranijo.
| Property TBooArray3.Count1 As Long | ||
| Result | Long | Nova velikost tabele. |
Count2
Lastnost Count2 spremeni velikost druge dimenzije tabele. Vrednosti v tabeli se ohranijo.
| Property TBooArray3.Count2 As Long | ||
| Result | Long | Nova velikost tabele. |
Count3
Lastnost Count3 spremeni velikost tretje dimenzije tabele. Vrednosti v tabeli se ohranijo.
| Property TBooArray3.Count3 As Long | ||
| Result | Long | Nova velikost tabele. |
Items
Lastnost Items dostopa posamezni vrednosti v tabeli.
| Property TBooArray3.Items (Index1, Index2, Index3 As Long) As Boolean | ||
| Index1 | Long | Prvi indeks celice. Prvi element ima indeks 0. |
| Index2 | Long | Drugi indeks celice. Prvi element ima indeks 0. |
| Index3 | Long | Tretji 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 TBooArray3.Destroy |