![]() |
'LDShapes.ShapeEvent' not found. - Printable Version +- Small Basic Forum (https://litdev.uk/mybb) +-- Forum: Small Basic (https://litdev.uk/mybb/forumdisplay.php?fid=1) +--- Forum: Extensions (https://litdev.uk/mybb/forumdisplay.php?fid=3) +--- Thread: 'LDShapes.ShapeEvent' not found. (/showthread.php?tid=300) |
'LDShapes.ShapeEvent' not found. - AbsoluteBeginner - 04-14-2025 Help! ![]() 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!.. ![]() RE: 'LDShapes.ShapeEvent' not found. - jrmrhrb00 - 04-14-2025 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 RE: 'LDShapes.ShapeEvent' not found. - Scout - 04-14-2025 Also works with latest extension 1.2.30.1 RE: 'LDShapes.ShapeEvent' not found. - AbsoluteBeginner - 04-14-2025 The reason for this error turned out to be that the "OnShapeEvent" subroutine had not yet been created in my code. ![]() I didn't know it was so critical. Thanks for your help. ![]() |