メソッド 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

参照

すべてのコンポーネント クラス

テクニカルリファレンス

EPC150060 - December 2023