We would like to build a community for Small Basic programmers of any age who like to code. Everyone from total beginner to guru is welcome. Click here to register and share your programming journey!


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
'LDShapes.ShapeEvent' not found.
#1
Help!  Huh

When trying to run the code from the SB-Prime Editor, the compiler displays a message that it does not find "LDShapes.ShapeEvent".

I updated everything.
This command is visible in both the tooltip and Help in the Editor window. But the compiler refuses to work.

He-e-elp!..  Cry
Reply
#2
AB,

Try this snippet! The Ldshapes.SetShapeEvent appears to work.

MyShape=Shapes.AddRectangle(40,40)
LDShapes.SetShapeEvent(MyShape)
LDShapes.ShapeEvent=OnShapeEvent

sub OnShapeEvent
  TextWindow.WriteLine("H")
  EndSub

JR
Reply
#3
Thumbs Up 
Also works with latest extension 1.2.30.1
Reply
#4
The reason for this error turned out to be that the "OnShapeEvent" subroutine had not yet been created in my code.  Huh

I didn't know it was so critical.

Thanks for your help.  Wink
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)