Equinox Online Help - Language Reference - A to Z

Home

PictureSize

Applies to
SyntaxPictureSize (PictureFieldName)
Action[Function] Returns the size of a picture stored in a picture field.
ScopeUsable anywhere.
Notes

The argument, PictureFieldName, is the name of a picture field. This function returns the size, in bytes, of the picture stored in this field in the current record.

If there is no picture in the field, or no current record, zero is returned.

CategoryPictures
See Also AssignPicture, ErasePicture, ExportPicture, ExtractPicture, ImportPicture, IsPicture, PictureType
Example

The following example sets the picture display options automatically, based on the size of the picture.

if PictureSize(StaffPhoto) > 65536 then | 64Kb
ShowPictures ShowRequest
else
ShowPictures ShowNodelay
end if