1 / 4

VB - Sestavljeni podatkovni tipi

VB - Sestavljeni podatkovni tipi. Tabele. VB - Sestavljeni podatkovni tipi. TABELE : splošna oblika napovedi: (Public|Private|Dim|Static) imeTabele [[SpodnjaMeja] To ZgornjaMeja] [ As Podatkovni tip] Statične tabele : velikost v naprej določena

manchu
Download Presentation

VB - Sestavljeni podatkovni tipi

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. VB - Sestavljeni podatkovni tipi Tabele

  2. VB - Sestavljeni podatkovni tipi TABELE: splošna oblika napovedi: (Public|Private|Dim|Static) imeTabele [[SpodnjaMeja] To ZgornjaMeja] [ As Podatkovni tip] Statične tabele: velikost v naprej določena Dinamične tabele: velikost lahko spreminjamo v programu z ukazom ReDim, n.pr.: DinTab () as Long . . . . . . . ReDim [Preserrve] DinTab(10)

  3. VB - Sestavljeni podatkovni tipi Option Base (0|1): spodnja meja indeksa je 0 oz. 1, če je ne definiramo drugače LBound(imeTabele), UBound(imeTabele): ugotavljamo zgornjo oz. spodnjo mejo Ukaz Array: priredimo (začetne) vrednosti: n. pr. Dim Teden As Variant ‘ obvezno tipa Variant Dim IzbraniDan As Variant ‘obvezno tipa Variant Teden = Array(“Ponedeljek”, … , “Nedelja”) . . . . . . . IzbraniDan = teden(3)

  4. VB - Sestavljeni podatkovni tipi Ponavljalni stavek oblike For Each … Next For Each indeks In Tabela - - - ukazi - - - - Next

More Related