KNOWLEDGE BASE
Log In    |    Knowledge Base    |    4D Home
Tech Tip: Clearing Picture fields
PRODUCT: 4D | VERSION: | PLATFORM:
Published On: November 10, 2000
Your current browser may not allow you to download the asset. We recommend Mozilla Firefox or Google Chrome.
Log In

When using picture fields, you may want to clear them programmatically. A basic method for doing that is to declare an empty picture variable in the On startup method and assign it afterwards to each picture field you want cleared. Since that empty picture is to be used in any process, it should be an interprocess variable. If you use that variable only for clearing purposes, you can access it at any time and from anywhere in the database.
That variable should be declared as follows:
C_PICTURE(<>MyEmptyPicture)