PRIM_WEB.File - FileSize Property
Size of the file
Member of PRIM_WEB.File (PRIM_WEB.File)
Data Type - Integer

Details


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

Example


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 )
Endroutine

See also

All Component Classes
Technical Reference