TDebug: Razlika med redakcijama

Iz SDMS
Jump to navigationJump to search
m
m
 
Vrstica 1: Vrstica 1:
{{Work}}
+
Razred '''TDebug''' je namenjen prikazu obvestil uporabniku o napredku med dolgotrajnimi operacijami.
Razred '''TDebug''' je namenjen enodimenzionalni tabeli boolean vrednosti.
+
<source>Debug.Show
 +
Debug.Clear
 +
Debug.AddLine ('DKN', 'Prvi del')
 +
Debug.LastLineMax (L.FilteredRecords.Count)
 +
For I = 0 To L.FilteredRecords.Count - 1
 +
  Debug.LastLineProgres (I+1)
 +
  ...
 +
Next
 +
Debug.LastLineUpdate ('Drugi del')
 +
...
 +
Debug.LastLineDelete
  
===AddLine===
+
Debug.Hide</source>
Metoda '''AddLine''' .
+
 
 +
===Show===
 +
Metoda '''Show''' prikaže okno, v katerega se izpisujejo sporočila.
 +
<declaration>
 +
Method|TDebug.Show
 +
</declaration>
 +
 
 +
===Hide===
 +
Metoda '''Hide''' skrije debug okno.
 
<declaration>
 
<declaration>
Method|TDebug.AddLine
+
Method|TDebug.Hide
Left|String|.
 
Right|String|.
 
 
</declaration>
 
</declaration>
<source></source>
 
  
 
===Clear===
 
===Clear===
Metoda '''Clear''' .
+
Metoda '''Clear''' izbriše vsebino okna.
 
<declaration>
 
<declaration>
 
Method|TDebug.Clear
 
Method|TDebug.Clear
 
</declaration>
 
</declaration>
<source></source>
 
  
===Hide===
+
===AddLine===
Metoda '''Hide''' .
+
Metoda '''AddLine''' izpiše naslednjo vrstico v debug okno.
 +
<declaration>
 +
Method|TDebug.AddLine
 +
Left|String|Tekst, ki se izpiše pred dvopičjem in ostane nespremenjen.
 +
Right|String|Tekst, ki se izpiše za dvopičjem in se lahko spremeni z ukazom '''LastLineUpdate'''.
 +
</declaration>
 +
 
 +
===LastLineUpdate===
 +
Metoda '''LastLineUpdate''' spremeni besedilo v zadnji vrstici.
 
<declaration>
 
<declaration>
Method|TDebug.Hide
+
Method|TDebug.LastLineUpdate
 +
Right|String|Tekst, ki se izpiše za dvopičjem v zadnji vrstici, ki je bila predhodno nastavljena z ukazom '''AddLine'''.
 
</declaration>
 
</declaration>
<source></source>
 
  
 
===LastLineDelete===
 
===LastLineDelete===
Metoda '''LastLineDelete''' .
+
Metoda '''LastLineDelete''' Izbriše zadnjo vrstico nastavljeno z {{PL|AddLine}}.
 
<declaration>
 
<declaration>
 
Method|TDebug.LastLineDelete
 
Method|TDebug.LastLineDelete
 
</declaration>
 
</declaration>
<source></source>
 
  
 
===LastLineMax===
 
===LastLineMax===
Metoda '''LastLineMax''' .
+
Metoda '''LastLineMax''' nastavi vrednost za 100%, da se lahko izpisuje napredek z ukazom {{PL|LastLineProgres}}.
 
<declaration>
 
<declaration>
 
Method|TDebug.LastLineMax
 
Method|TDebug.LastLineMax
Max|Float|.
+
Max|Float|Vrednost za 100%.
 
</declaration>
 
</declaration>
<source></source>
 
  
 
===LastLineProgres===
 
===LastLineProgres===
Metoda '''LastLineProgres''' .
+
Metoda '''LastLineProgres''' nastavi trenutno vrednost za izpis napredka. Predhodno je potrebno nastaviti maksimalno vrednost z ukazom {{PL|LastLineMax}}.
 
<declaration>
 
<declaration>
 
Method|TDebug.LastLineProgres
 
Method|TDebug.LastLineProgres
Progres|Float|.
+
Progres|Float|Trenutna vrednost.
</declaration>
 
<source></source>
 
 
 
===LastLineUpdate===
 
Metoda '''LastLineUpdate''' .
 
<declaration>
 
Method|TDebug.LastLineUpdate
 
Right|String|.
 
</declaration>
 
<source></source>
 
 
 
===Show===
 
Metoda '''Show''' .
 
<declaration>
 
Method|TDebug.Show
 
 
</declaration>
 
</declaration>
<source></source>
 
  
 
[[Category:Razredi|Debug]]
 
[[Category:Razredi|Debug]]
 
[[Category:SDMS Basic|Debug]]
 
[[Category:SDMS Basic|Debug]]

Trenutna redakcija s časom 21:14, 29. december 2010

Razred TDebug je namenjen prikazu obvestil uporabniku o napredku med dolgotrajnimi operacijami.

Debug.Show
Debug.Clear
Debug.AddLine ('DKN', 'Prvi del')
Debug.LastLineMax (L.FilteredRecords.Count)
For I = 0 To L.FilteredRecords.Count - 1
  Debug.LastLineProgres (I+1)
  ...
Next
Debug.LastLineUpdate ('Drugi del')
...
Debug.LastLineDelete

Debug.Hide

Show

Metoda Show prikaže okno, v katerega se izpisujejo sporočila.

Method TDebug.Show

Hide

Metoda Hide skrije debug okno.

Method TDebug.Hide

Clear

Metoda Clear izbriše vsebino okna.

Method TDebug.Clear

AddLine

Metoda AddLine izpiše naslednjo vrstico v debug okno.

Method TDebug.AddLine (Left, Right As String)
LeftStringTekst, ki se izpiše pred dvopičjem in ostane nespremenjen.
RightStringTekst, ki se izpiše za dvopičjem in se lahko spremeni z ukazom LastLineUpdate.

LastLineUpdate

Metoda LastLineUpdate spremeni besedilo v zadnji vrstici.

Method TDebug.LastLineUpdate (Right As String)
RightStringTekst, ki se izpiše za dvopičjem v zadnji vrstici, ki je bila predhodno nastavljena z ukazom AddLine.

LastLineDelete

Metoda LastLineDelete Izbriše zadnjo vrstico nastavljeno z AddLine.

Method TDebug.LastLineDelete

LastLineMax

Metoda LastLineMax nastavi vrednost za 100%, da se lahko izpisuje napredek z ukazom LastLineProgres.

Method TDebug.LastLineMax (Max As Float)
MaxFloatVrednost za 100%.

LastLineProgres

Metoda LastLineProgres nastavi trenutno vrednost za izpis napredka. Predhodno je potrebno nastaviti maksimalno vrednost z ukazom LastLineMax.

Method TDebug.LastLineProgres (Progres As Float)
ProgresFloatTrenutna vrednost.