Programming Reference Manual
IfNull
Syntax
expr
IfNull(
expr
[
, NullReplacement
])
Description
Returns a replacement value when the tested expression is empty or has a null value.
Parameter
Description
expr
Expression to be evaluated
NullReplacement
Optional. Replacement value in case
expr
is null or empty. Default value is 0 (zero).
See Also
IsEmpty,
IsNull
.
Example
Sub
Main
Dim
X As
Variant
Debug
.
Print
ifnull(X,
"not assigned"
)
End
Sub
Home
IDE Overview
Declarations
Data Types
Assignment
Flow Control
Error Handling
Conversion
Variable Info
Constant
Math
Financial
Strings
StringClass
Objects
Time/Date
File
User Input
User Dialog
Dialog Functions
Web Form
CCL (web server)
DDE
Settings
Miscellaneous
Miscellaneous
AboutWinWrapBasic
AppActivate
Beep
CallersLine
Clipboard
Command
CreateSEPA_QRCode
Debug
Decode64
DecodeJSON
Decrypt64
DoEvents
Encode64
EncodeJSON
Encrypt64
Environ
Eval
ForeignLanguage
GetLocale
IfNull
KeyName
MacroDir
QBColor
Rem
RGB
SendKeys
SetLocale
Shell
Shutdown
Trans
UnTarFiles
UnZipFiles
ValidateXML
Wait
ZipFiles
Operator
Translator