MESCIUS SPREAD for ASP.NET 10.0J
NextNonEmptyRow メソッド (IOptimizedEnumerationSupport2)

調べる開始行のインデックス
データを持っている次の行のインデックスを返します。
構文
'Declaration
 
Function NextNonEmptyRow( _
   ByVal row As Integer _
) As Integer
int NextNonEmptyRow( 
   int row
)

パラメータ

row
調べる開始行のインデックス

戻り値の型

値を含む次の行の行インデックスを表すInteger。値を含む列がない場合は-1。
FarPoint.Web.Spread.Model.IOptimizedEnumerationSupport2 oes;
Random r = new Random(); 
int countc, countr; 
int i, j; 
for (i = 0; i<=1; i++) 
{ 
     for (j = 0; j<=2; j++) 
          FpSpread1.ActiveSheetView.SetValue(i, j, r.Next(1, 200).ToString()); 
} 
oes = (FarPoint.Web.Spread.Model.IOptimizedEnumerationSupport2)FpSpread1.ActiveSheetView.DataModel; 
int ret = oes.NextNonEmptyRow(0);
string msg = "The next non-empty row is " + ret.ToString();
Response.Write("<script language='javascript'>alert('" + msg + "')</script>");
Dim oes As FarPoint.Web.Spread.Model.IOptimizedEnumerationSupport2
Dim r As New Random
Dim i, j As Integer
Dim countc, countr As Integer
For i = 0 To 1
     For j = 0 To 2
          FpSpread1.ActiveSheetView.SetValue(i, j, r.Next(1, 200).ToString())
     Next j
Next i
oes = FpSpread1.ActiveSheetView.DataModel
Dim ret As Integer = oes.NextNonEmptyRow(0)
Dim msg As String = "The next non-empty column is " & ret.ToString()
Response.Write("<script language='javascript'>alert('" & msg & "')</script>")
参照

IOptimizedEnumerationSupport2 インタフェース
IOptimizedEnumerationSupport2 メンバ

 

 


© MESCIUS inc. All rights reserved.