Associate
- Joined
- 8 Jan 2009
- Posts
- 1,492
- Location
- Northern Ireland
I have a few errors in lines, 7,59 8,3 26,1 28,3 and 24,17. cant figure them out. You can download the Basic program language from Microsoft HERE free.
Code:
First=1
Last=100
TextWindow.Clear()
For Celsius=First To Last
Fahrenheit=(9/5)* Celsius+32
TextWindow. WriteLine(Celsius+"degreesC is"+Farhrenheit+"degreesF is"
Endfo
While URL=""
TextWindow.Clear()
TextWindow. Write("What should I search Flickr for?")
Tag=TextWindow.Read()
URL=Flickr.GetRandomPicture(Tag)
EndWhile
Desktop.SetWallPaper(URL)
GraphicsWindow. BackgroundColor="White"
GraphicsWindow.PenColor="Green"
GraphicsWindow.Width=480
For i= 0 To 6.4 step 0.17
x = Math.Sin(i)*100+180
y = Math.Cos(i)*100+160
GraphicsWindow.DrawEllipse(x,y,120,120)
EndFor
GraphicsWindow. MouseDown=OnMouseDown
GraphicsWindow. MouseMove=OnMouseMove
Sub OnMouseDown
GraphicsWindow.BrushColor = GraphicsWindow.GetRandomColor()
EndSub
Sub OnMouseMove
If Mouse.IsLeftButtonDown Then
x=GraphicsWindow.MouseX-6
y=GraphicsWindow.MouseY-6
GraphicsWindow.FillEllipse(x,y,12,12)
EndIf
EndSub
Last edited: