TBooArray2: Razlika med redakcijama

Iz SDMS
Jump to navigationJump to search
m
m
 
Vrstica 1: Vrstica 1:
{{Work}}
 
 
Razred '''TBooArray2''' je namenjen dvodimenzionalni tabeli boolean vrednosti.
 
Razred '''TBooArray2''' je namenjen dvodimenzionalni tabeli boolean vrednosti.
 +
 +
==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>
<source></source>
 
  
 
===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>
<source></source>
 
  
===Destroy===
+
===Items===
Metoda '''Destroy''' .
+
Lastnost '''Items''' dostopa posamezni vrednosti v tabeli.
 
<declaration>
 
<declaration>
Method|TBooArray2.Destroy
+
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>
<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|TBooArray2.Items
+
Method|TBooArray2.Destroy
Index1|Long|.
 
Index2|Long|.
 
Result|Boolean|.
 
 
</declaration>
 
</declaration>
<source></source>
 
  
 
[[Category:Razredi tabel|BooArr2]]
 
[[Category:Razredi tabel|BooArr2]]
 
[[Category:Razredi|BooArr2]]
 
[[Category:Razredi|BooArr2]]
 
[[Category:SDMS Basic|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 tabelo

Count1

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

Property TBooArray2.Count1 As Long
ResultLongNova velikost tabele.

Count2

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

Property TBooArray2.Count2 As Long
ResultLongNova velikost tabele.

Items

Lastnost Items dostopa posamezni vrednosti v tabeli.

Property TBooArray2.Items (Index1, Index2 As Long) As Boolean
Index1LongPrvi indeks celice. Prvi element ima indeks 0.
Index2LongDrugi 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 TBooArray2.Destroy