SetGridValue method (WinStudio scripts)

Applies To

IWSFormComponent interface, grid objects

Definition

Sets the value of a cell in a grid component.

Syntax

object.SetGridValue( integer1, integer2, string )

  Part   Description
object Required. A reference to a grid object.
integer1 Required. The row number.
integer2 Required. The column number.
string Required. The value being set.

Example

Sub Main()
   Dim iRow As Integer
   Dim iCol As Integer
   
   iRow = 5
   iCol = 1
   ThisForm.Components("MrpPlanviewTempsGrid").SetGridValue(iRow, iCol, "1")
   iCol = 2
   ThisForm.Components("MrpPlanviewTempsGrid").SetGridValue(iRow, iCol, "02/18/79")
End Sub