Developer technologies | Small BASIC
A programming language created by Microsoft that serves a stepping stone for beginners from block-based coding languages to more complex text-based languages.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
GraphicsWindow.Show()
GraphicsWindow.LastKey = onClick
Sub onClick
T = GraphicsWindow.LastKey
If T = 1 Then
Goto Parte1
EndIf
If T = 2 Then
Goto Parte2
EndIf
EndSub
Parte1:
GraphicsWindow.ShowMessage("Premuto 1","Avviso")
Program.End()
Parte2:
GraphicsWindow.ShowMessage("Parte2","Avviso")
Program.End()
A programming language created by Microsoft that serves a stepping stone for beginners from block-based coding languages to more complex text-based languages.
General hints for clean programming :
The following program works! :
GraphicsWindow.Show()
GraphicsWindow.KEYUP = onClick
While 0=0
Program.Delay(100)
EndWhile
Sub onClick
T = GraphicsWindow.LastKey
GraphicsWindow.DrawText(10,10,T) ''to show the key text returned
If T = "D1" Then
GraphicsWindow.ShowMessage("Premuto 1","Avviso")
Program.End()
EndIf
If T = "D2" Then
GraphicsWindow.ShowMessage("Parte2","Avviso")
Program.End()
EndIf
EndSub