Skip to content

Latest commit

 

History

History
54 lines (43 loc) · 1.25 KB

CellHasStr.md

File metadata and controls

54 lines (43 loc) · 1.25 KB

CellHasStr

Description

Function CellHasStr returns TRUE if the specified cell of a referenced worksheet contains a value or an equation which returns a string value.

FUNCTION CellHasStr(
				h   : HANDLE;
				row : INTEGER;
				col : INTEGER): BOOLEAN;
def vs.CellHasStr(h, row, col):
    return BOOLEAN

Parameters

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

Examples

resultOK := CellHasStr(h, 1, 2);
import vs

# Function CellHasStr returns TRUE if the specified cell of a referenced
# worksheet contains a value or an equation which returns a string value.
h = vs.FSActLayer()  # handle to the first selected object on the active layer
row = 10
col = 5

ok = vs.CellHasStr(h, row, col)
if ok:
    vs.Message('CellHasStr succeeded')
else:
    vs.Message('CellHasStr failed')

See Also

IsWSCellString, IsWSSubrowCellString

Version

CellHasStr is obsolete as of VectorWorks 9.0, see IsWSCellString, IsWSSubrowCellString

Availability: from All Versions

Category