VB Code:
  1. Sub MouseMove (X As Integer, Y As Integer)
  2.   Dim o As OvalShape
  3.   If MouseX >=1 or MouseY >=1 Then
  4.     o = New OvalShape
  5.     'o.Visible
  6.     o.FillColor = RGB(255,0,0)
  7.     o.Width = 27
  8.     o.Height = 27
  9.     'o.Top = MouseX + 5
  10.     'o.Left = MouseY + 5
  11.   End if
  12. End Sub

When trying to make a new control at runtime, which will be an OvalShape, it doesn't make the control, because the lines that I have 'commented' give me syntax errors, so RealBasic doesn't even recognize variable "o" as an OvalShape control. Can anyone tell me how to fix this?