User Tools

Site Tools


k10:k10.1:start

10.1 Sequence

The simplest form of the program structure in individual procedures (→ source code) is the linear statement sequence. Several statements are executed immediately one after the other in a statement block, with empty lines and comments in the source code generally ignored by the interpreter:

  • Instruction_1

  • Instruction_k

Example

Public Sub Form_Open()
' Statement block -> start
 
  FMain.Center
  myHttpClient = New HttpClient As "myHttpClient"
 
  Feeds[0] = "http://www.tagesschau.de/xml/rss2"
  Feeds[1] = "http://www.zdf.de/ZDFmediathek/rss/166?view=rss"
  Feeds[2] = "http://www.spiegel.de/schlagzeilen/tops/index.rss"
  cmbFeedSource.Add("ARD", 0)
  cmbFeedSource.Add("ZDF", 1)
  cmbFeedSource.Add("Spiegel-Online", 2)
 
' Automatically select the first URL
  cmbFeedSource.Index = 0
  WebView.Background = &HE1EAF6 
 
' Statement block -> end
End ' Form_Open()

Download

Articles

Download

The website uses a temporary session cookie. This technically necessary cookie is deleted when the browser is closed. You can find information on cookies in our privacy policy.
k10/k10.1/start.txt · Last modified: 23.09.2023 by honsek

Page Tools