TDebug: Razlika med redakcijama
Iz SDMS
Jump to navigationJump to searchm (Nova stran z vsebino: {{Work}} Razred '''TDebug''' je namenjen enodimenzionalni tabeli boolean vrednosti. ===AddLine=== Metoda '''AddLine''' . <declaration> Method|TDebug.AddLine Left|String|. Righ...) |
m |
||
| (Vmesna redakcija istega uporabnika ni prikazana) | |||
| Vrstica 1: | Vrstica 1: | ||
| − | + | Razred '''TDebug''' je namenjen prikazu obvestil uporabniku o napredku med dolgotrajnimi operacijami. | |
| − | Razred '''TDebug''' je namenjen | + | <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 | ||
| − | === | + | Debug.Hide</source> |
| − | Metoda ''' | + | |
| + | ===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. | + | Method|TDebug.Hide |
| − | |||
| − | |||
</declaration> | </declaration> | ||
| − | |||
===Clear=== | ===Clear=== | ||
| − | Metoda '''Clear''' . | + | Metoda '''Clear''' izbriše vsebino okna. |
<declaration> | <declaration> | ||
Method|TDebug.Clear | Method|TDebug.Clear | ||
</declaration> | </declaration> | ||
| − | |||
| − | === | + | ===AddLine=== |
| − | Metoda ''' | + | 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. | + | 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> | ||
| − | |||
===LastLineDelete=== | ===LastLineDelete=== | ||
| − | Metoda '''LastLineDelete''' . | + | Metoda '''LastLineDelete''' Izbriše zadnjo vrstico nastavljeno z {{PL|AddLine}}. |
<declaration> | <declaration> | ||
Method|TDebug.LastLineDelete | Method|TDebug.LastLineDelete | ||
</declaration> | </declaration> | ||
| − | |||
===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> | ||
| − | |||
===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> | </declaration> | ||
| − | |||
| − | [[Category:Razredi]] | + | [[Category:Razredi|Debug]] |
| − | [[Category:SDMS Basic]] | + | [[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.HideVsebina
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) | ||
| 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. |
LastLineUpdate
Metoda LastLineUpdate spremeni besedilo v zadnji vrstici.
| Method TDebug.LastLineUpdate (Right As String) | ||
| Right | String | Tekst, 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) | ||
| Max | Float | Vrednost 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) | ||
| Progres | Float | Trenutna vrednost. |