ResetInk

Description

Clears ink from an InkPicture control in a DataWindow.

Applies to

DataWindow type

Method applies to

PowerBuilder

DataWindow control

Syntax

PowerBuilder

integer dwcontrol.ResetInk ( string name, long rownumber )

Argument

Description

dwcontrol

A reference to a DataWindow control.

name

The name of the InkPicture control from which you want to clear the picture.

rownumber

The number of the row that contains the picture to be cleared. To clear all rows, set rownumber to 0.

Returns

Integer. Returns 1 for success and –1 for failure.

Usage

Use the ResetInk function to clear the ink from an InkPicture control.

Examples

Example 1

The following example clears the ink in an InkPicture control in row 3 of a DataWindow object:

int li_return
li_return = dw_1.ResetInk(inkpic_1, 3)

See also