Script.RemoveUserCursor(Name)

Script.RemoveUserCursor(Name) to remove and delete the previously created user cursor by name. Cursors can be used with DataTables from both the form events and the Grid Script.

Note: This method has been developed so that it should not conflict with system cursors.

Applies To

Properties and Methods

None

Available

The .RemoveUserCursor(Name) method is available in:

  • 17.01.006
  • All newer builds

Type

Boolean

Syntax

Script.RemoveUserCursor(Name);

Parameters

Parameter

Required

Description

Name

Yes

Name of the user-defined cursor to be removed. User-defined cursors begin with s or u.

Example

Script.RemoveUserCursor("sTomCursor");

//--Script 3: (Find a management report grid layout - example using the viewcashap)

 

var loResult = Parameters.Results;

loResult.AddStringColumn("sNewString");

try

{

var loTable = Script.GetDataTable("sTomCursor");

if(loTable.Count > 0)

{

var lcText = loTable.GetRow(0).GetString("sText");

if(loResult.Count<2)

{

var lrData = loResult.AddRow();

lrData.SetString("sNewString", lcText);

}

}

}

catch

{

//Do nothing

}

 

/* Verify -

1. In Deacom, Go to management report with grid script. Accounting > Cash Disbursement Summary.

2. View - confirm that after the button 1 is clicked, the new column is displayed with the data specified.

3. Confirm that after button 2 is clicked, the new column is blank.

*/

Keyword Link IconScript Object - Properties and Methods