Skip to content

Latest commit

 

History

History
61 lines (48 loc) · 1.28 KB

GetCellNum.md

File metadata and controls

61 lines (48 loc) · 1.28 KB

GetCellNum

Description

Function GetCellNum returns the numeric value of a cell in the referenced worksheet.

FUNCTION GetCellNum(
				h   : HANDLE;
				row : INTEGER;
				col : INTEGER): REAL;
def vs.GetCellNum(h, row, col):
    return REAL

Parameters

Name Type Description
h HANDLE Handle to worksheet.
row INTEGER Worksheet row index.
col INTEGER Worksheet column index.

Examples

BEGIN
	numPoints := GetCellNum (wksH, 1, 2);

BEGIN
	numRows := GetCellNum (wksH, 1, 2);
	IF numRows > 0 THEN
	BEGIN
		getData := TRUE;

GetWSCellValue (wksH, 3, 2, supportTypeL);
xLeft := GetCellNum (wksH, 4, 2);
import vs

# Function GetCellNum returns the numeric value of a cell in the referenced
# worksheet.
h = vs.FSActLayer()  # handle to the first selected object on the active layer
row = 10
col = 5

value = vs.GetCellNum(h, row, col)
vs.Message('GetCellNum returned: ' + str(value))

See Also

GetWSCellValue, GetWSSubrowCellValue

Version

GetCellNum is obsolete as of VectorWorks 9.0, see new GetWSCellValue and GetWSSubrowCellValue

Availability: from All Versions

Category