TBooArray3: Razlika med redakcijama

Iz SDMS
Jump to navigationJump to search
m
m
 
(Vmesna redakcija istega uporabnika ni prikazana)
Vrstica 1: Vrstica 1:
{{Work}}
 
 
Razred '''TBooArray3''' je namenjen trodimenzionalni tabeli boolean vrednosti.
 
Razred '''TBooArray3''' je namenjen trodimenzionalni tabeli boolean vrednosti.
 +
 +
==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>
<source></source>
 
  
 
===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>
<source></source>
 
  
 
===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>
<source></source>
 
  
===Destroy===
+
===Items===
Metoda '''Destroy''' .
+
Lastnost '''Items''' dostopa posamezni vrednosti v tabeli.
 
<declaration>
 
<declaration>
Method|TBooArray3.Destroy
+
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>
<source></source>
 
  
===Items===
+
==Opuščeno==
Lastnost '''Items''' .
+
 
 +
===Destroy===
 +
Metoda '''Destroy''' dealocira razred. Metoda je opuščena in se priporoča uporaba funkcije {{EL|Rutine|Destroy}}.
 
<declaration>
 
<declaration>
Property|TBooArray3.Items
+
Method|TBooArray3.Destroy
Index1|Long|.
 
Index2|Long|.
 
Index3|Long|.
 
Result|Boolean|.
 
 
</declaration>
 
</declaration>
<source></source>
 
  
 
[[Category:Razredi tabel|BooArr3]]
 
[[Category:Razredi tabel|BooArr3]]
 
[[Category:Razredi|BooArr3]]
 
[[Category:Razredi|BooArr3]]
 
[[Category:SDMS Basic|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 tabelo

Count1

Lastnost Count1 spremeni velikost prve dimenzije tabele. Vrednosti v tabeli se ohranijo.

Property TBooArray3.Count1 As Long
ResultLongNova velikost tabele.

Count2

Lastnost Count2 spremeni velikost druge dimenzije tabele. Vrednosti v tabeli se ohranijo.

Property TBooArray3.Count2 As Long
ResultLongNova velikost tabele.

Count3

Lastnost Count3 spremeni velikost tretje dimenzije tabele. Vrednosti v tabeli se ohranijo.

Property TBooArray3.Count3 As Long
ResultLongNova velikost tabele.

Items

Lastnost Items dostopa posamezni vrednosti v tabeli.

Property TBooArray3.Items (Index1, Index2, Index3 As Long) As Boolean
Index1LongPrvi indeks celice. Prvi element ima indeks 0.
Index2LongDrugi indeks celice. Prvi element ima indeks 0.
Index3LongTretji indeks celice. Prvi element ima indeks 0.
ResultBooleanVrednost celice.

Opuščeno

Destroy

Metoda Destroy dealocira razred. Metoda je opuščena in se priporoča uporaba funkcije Rutine.Destroy.

Method TBooArray3.Destroy