PowerBuilder Function Check String IsNull Or Empty gf_IsNullOrEmpty
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
//==================================================================== // Function: gf_IsNullOrEmpty() //-------------------------------------------------------------------- // Description: Check String IsNull Or Empty //-------------------------------------------------------------------- // Arguments: // value string as_string //-------------------------------------------------------------------- // Returns: boolean //-------------------------------------------------------------------- // Usage: gf_IsNullOrEmpty ( string as_string ) //-------------------------------------------------------------------- // Modify History: // //==================================================================== Boolean lb_rc = False If IsNull(as_string) Or Len(Trim(as_string)) = 0 Then lb_rc = True Else lb_rc = False End If Return lb_rc |
Good Luck!
Subscribe
Login
0 Comments