KNOWLEDGE BASE
Log In    |    Knowledge Base    |    4D Home
Tech Tip: How to determine whether a picture variable or field is empty
PRODUCT: 4D | VERSION: | PLATFORM: Mac & Win
Published On: March 16, 2001

To determine whether a picture variable or field is empty, you can compare it with an empty picture variable. To do so create a picture variable without assigning any data to it.

For example:

C_PICTURE (vEmptyPicture)
If ([Table]PictureField=vEmptyPicture)
` [Table]PictureField is empty
` Do something
End if

Commented by Bob Eden on May 21, 2009 at 1:50 PM
I tried the code above. Mine looks like this: C_PICTURE(vEmptyPicture)Ê If ([MyTable]Image=vEmptyPicture) ÊÊ` [Table]PictureField is empty I get this error msg. my image = 88kb and vEmptyPicture = 0kb but, I get this msg. command cannot be applied between to picture arguments. confused...