You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Current »

[ |../../index.htm#lansa/ladtgub3_0250.htm]
現在地:

8.3.6 VarIsBoolean

VarIsBooleanは、Subjectバリアントをブール値に変換できる場合にブール値のTrueを返し、そうでない場合にブール値のFalseを返します。
VarIsBoolean( Subject )  

以下は、変数がブール値であるかどうかを確認するプロパティ・ルーチンです。
Ptyroutine Name(Set_uSignalSelection) Define_Map For(*input) Class(*variant) Name(#lcVariant) If Cond(VarIsBoolean( #lcVariant ) *EQ True) Execute Subroutine(FP_SETB) With_Parms(#USE_NAME uSignalSelection 1 #USE_OCUR #lclVariant.Boolean) Else Execute Subroutine(FP_SET) With_Parms(#USE_NAME uSignalSelection 1 #USE_OCUR #LCLVARIANT.String) Endif  
[ |../../index.htm#lansa/ladtgub3_0250.htm]

  • No labels