FlowControl.ForNextCheckDec(Decimal, Decimal, Decimal) 方法

定義

檢查迴圈計數器、StepTo 值的有效值。

此 API 支援此產品基礎結構,但無法直接用於程式碼之中。

public:
 static bool ForNextCheckDec(System::Decimal count, System::Decimal limit, System::Decimal StepValue);
public static bool ForNextCheckDec (decimal count, decimal limit, decimal StepValue);
static member ForNextCheckDec : decimal * decimal * decimal -> bool
Public Function ForNextCheckDec (count As Decimal, limit As Decimal, StepValue As Decimal) As Boolean
Public Shared Function ForNextCheckDec (count As Decimal, limit As Decimal, StepValue As Decimal) As Boolean

參數

count
Decimal

必要。 Decimal 值,表示傳遞給迴圈計數器變數的初始值。

limit
Decimal

必要。 Decimal 值,表示使用 To 關鍵字傳遞的值。

StepValue
Decimal

必要。 Decimal 值,表示使用 Step 關鍵字傳遞的值。

傳回

如果 StepValue 大於零且 count 小於或等於 limit,或是 StepValue 小於或等於零且 count 大於或等於 limit,則為 True,否則為 False

備註

這個類別支援 Visual Basic 編譯程式,並不適合直接從您的程式代碼使用。

適用於

另請參閱