Login Page - Create Account

Support Board


Date/Time: Thu, 26 Dec 2024 20:31:42 +0000



Post From: Need to call sc.UseTool twice before userdrawn drawing can be found.

[2015-11-16 13:06:34]
jesslinn - Posts: 108
With tool values set to AddAsUserDrawnDrawing=1 and LineNumber=-1 (the undefined value from Clear()), the first call to sc.UseTool draws the line and fills in the LineNumber with a unique negative number. A call to sc.UserDrawnChartDrawingExists using the returned line number returns TRUE, but a call to
sc.GetUserDrawingByLineNumber returns failure. However if one calls sc.UseTool twice, once with the
LineNumber=-1 and again with the LineNumber set to the returned unique LineNumber, subsequent calls to sc.GetUserDrawingByLineNumber will succeed.

This is a low priority problem since there is an easy workaround (call UseTool twice before checking for user changes).

With issues of this kind do you prefer to receive an attached source code file demonstrating the problem?