PRIM_WEB.File - FileSize Property

Size of the file

Member of PRIM_WEB.File (PRIM_WEB.File)

Data Type - Integer


The FileSize property will return the size of the selected file in bytes.


In this example, when a file is selected, the name and size are combined to produce a caption for the file
Evtroutine Handling(#FilePicker.FileSelected) File(#File)
   #FileCaption := ("&1 - &2Kb").substitute( #File.Name (#File.FileSize / 1024).round( up 2 ).asstring )

See also

All Component Classes

Technical Reference

Febuary 18 V14SP2