Equinox Online Help - Language Reference - A to Z

Home

PictureType

Applies to
SyntaxPictureType(PictureItem)
Action[Function] Returns the type of image stored in a picture field.
ScopeUsable anywhere.
Notes

This function returns a three-letter string indicating the type of image stored in PictureItem, the name of a picture field in the current record. The type can be one of the following:

  • BMP
  • GIF
  • JPG
  • PCX
  • TGA
  • TIF
  • PNG
  • PCS
  • WMF
  • EMF
  • PAX
  • PSD
  • TLA
CategoryPictures
See Also AssignPicture, ErasePicture, ExportPicture, ExtractPicture, ImportPicture, IsPicture, PictureSize
Example

The following example checks a picture field called "Photo" and displays information about it using a message.

switch PictureType(Photo)
case "BMP"
Message "RGB-encoded bitmap", 1
case "GIF"
Message "Graphics interchange format", 1
case "JPG"
Message "Joint photographic expert group", 1
case "PCX"
Message "PC Paintbrush", 1
case "RLE"
Message "Run-length encoded bitmap", 1
case "TGA"
Message "Targa", 1
case "TIF"
Message "Tagged-image file format", 1
end switch