[ 파워빌더.공통함수 - iif ]
☞ iif , 표현식에 따라 return값을 다르게 하는 함수 | |
세 개의 인자값이 있습니다. 첫번째 값의 결과가 참일 경우에는 두번째 인자를 return 하고, 거짓일 경우에는 세 번째 인자를 return 합니다.
각 버전에 따라 함수오브젝트(iif)를 만드시고, 아래 스크립트를 복사하여 바꿔주세요.
global type iif from function_object forward prototypes global function string iif (readonly boolean abExpression, readonly string asTruePart, readonly string asFalsePart);if abExpression then global function long iif (readonly boolean abExpression, readonly long alTruePart, readonly long alFalsePart);if abExpression then global function integer iif (readonly boolean abExpression, readonly integer aiTruePart, readonly integer aiFalsePart);if abExpression then global function date iif (readonly boolean abExpression, readonly date adtTruePart, readonly date adtFalsePart);if abExpression then global function time iif (readonly boolean abExpression, readonly time atTruePart, readonly time atFalsePart);if abExpression then global function datetime iif (readonly boolean abExpression, readonly datetime adtTruePart, readonly datetime adtFalsePart);if abExpression then global function decimal iif (readonly boolean abExpression, readonly decimal adTruePart, readonly decimal adFalsePart);if abExpression then global function double iif (readonly boolean abExpression, readonly double adTruePart, readonly double adFalsePart);if abExpression then | |
☞ |
'파워빌더 > 공통함수' 카테고리의 다른 글
파워빌더.공통함수 - Token Parsing (0) | 2017.01.26 |
---|---|
파워빌더.공통함수 - bit연산 (0) | 2017.01.26 |
파워빌더.공통함수 - isNumber (0) | 2017.01.26 |
파워빌더.공통함수 - isEqual (0) | 2017.01.26 |
파워빌더.공통함수 - isEmptyOrNull (0) | 2017.01.26 |