Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

PRIM_WEB.File - FileSize Property

Panel
bgColor#2c3c4c

Size of the file

Member of 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