CompatibleUnicode組み込みファンクション - IsGregorianYearMonthメソッド 

変数がグレゴリオ暦の年月であるか確認します

CompatibleUnicode組み込みファンクション (PRIM_LIBI.ICompatibleUnicodeIntrinsics) のメンバ

パラメータ

名前

タイプ

データタイプ

記述

Result

*Result (任意)

ブール値

文字列が有効なグレゴリオ暦の年月の場合TRUE

詳細

変数が有効なグレゴリオ暦年の月に変換できる場合、 IsGregorianYearMonth は True を返します。 

潜在的なエラーをより良く処理するために、 IsGregorianYear を IsGregorianYearMonth の前に使用することがよくあります。 

グレゴリオ暦年の月の形式は YYYY-MM+HH:MM です。

この例では、 #Variable が #Result に割り当てられる前にテストされています。 

     If (#Variable.IsGregorianYearMonth)
#Result := #Variable.AsGregorianYearMonth
Endif


参照

すべてのコンポーネント クラス
テクニカルリファレンス

  • No labels