Examples: Size property (NotesDocument - LotusScript®)

This script gets the size of a document and puts it into sizeInBytes. For example, Size returns 135.

Dim doc As NotesDocument
Dim sizeInBytes As Long
'...set value of doc...
sizeInBytes = doc.Size