IsEmpty Function

Variant ๋ณ€์ˆ˜์— Empty ๊ฐ’์ด ํฌํ•จ๋˜์–ด ์žˆ๋Š”์ง€ ํ…Œ์ŠคํŠธํ•ฉ๋‹ˆ๋‹ค. Empty ๊ฐ’์€ ๋ณ€์ˆ˜๊ฐ€ ์ดˆ๊ธฐํ™”๋˜์ง€ ์•Š๋Š”๋‹ค๋Š” ๊ฒƒ์„ ๋‚˜ํƒ€๋ƒ…๋‹ˆ๋‹ค.

๊ตฌ๋ฌธ:


IsEmpty (Var)

๋ฐ˜ํ™˜ ๊ฐ’:

Bool

๋งค๊ฐœ ๋ณ€์ˆ˜:

Var: ํ…Œ์ŠคํŠธํ•  ์ž„์˜์˜ ๋ณ€์ˆ˜์ž…๋‹ˆ๋‹ค. Variant์— Empty ๊ฐ’์ด ํฌํ•จ๋œ ๊ฒฝ์šฐ์—๋Š” True๊ฐ€, ๊ทธ๋ ‡์ง€ ์•Š์€ ๊ฒฝ์šฐ์—๋Š” False๊ฐ€ ๋ฐ˜ํ™˜๋ฉ๋‹ˆ๋‹ค.

Error codes:

5 ์ž˜๋ชป๋œ ํ”„๋กœ์‹œ์ € ํ˜ธ์ถœ์ž…๋‹ˆ๋‹ค.

์˜ˆ:


Sub ExampleIsEmpty
Dim sVar As Variant
    sVar = Empty
    Print IsEmpty(sVar) REM Returns True
End Sub

Please support us!