Search:     Advanced search

ResultPointY

Article ID: 290
Last updated: 24 Sep, 2010
Views: 748
Posted: 08 Dec, 2008
by Thomas B.
Updated: 24 Sep, 2010
by Murray D.

 

Description:

Returns Y of the last point returned by GetPoint, GetLine, or GetRect.

Notes:

Creates a Count Item at GetPoint Location. Using ResultPoints.  Copy and Past code into a new PlanSwift Script.

Pascal Example:

ATab := CurrentTab;
X1 := ResultPointX;
Y1 := ResultPointY;
GetPoint(X1,Y1,'Select Point');
NewPoint := NewItem(ATab);
SetDigitizerType(NewPoint,'Count');
SetItemProperty(NewPoint,'Name','Test Count');
NewSection := AddSection(NewPoint);
AddPoint(NewPoint,X1,Y1,NewSection);

Visual Basic Example:

ATab = CurrentTab
X1 = ResultPointX
Y1 = ResultPointY
GetPoint(X1,Y1,'Select Point')
NewPoint = NewItem(ATab)
SetDigitizerType(NewPoint,"Count")
SetItemProperty(NewPoint,"Name","Test Count")
NewSection = AddSection(NewPoint)
AddPoint(NewPoint,X1,Y1,NewSection)


Enterprise and Developer editions

This article was:  
Prev  Not what you're looking for? Suggest a topic  Next
ResultPointX     ResultPointX2