Promotic
WikipediaLinkedInYoutubeTwitterFacebook

FileGetLength - method of object Pm

Description:
Getting the size of the file (in bytes).
Syntax:
FileGetLength(sFile As String) As Long
Calling:
n = Pm.FileGetLength(sFile)
Parameters:
sFile(String) file name (with the path). If a full path is not entered, it is completed relatively according to the application file folder.

It is recommended to use the PROMOTIC path syntax - see PROMOTIC path to files and folders.

Return Values:
Returns the file length (in bytes). If the method fails, the return value is 0.
Note:
This method is not functional for Web Panels.
Example:
FileSize = Pm.FileGetLength("#data:file.txt")
Navigation:
 
- Pm
 
- Abs
- Cos
- E
- Exp
- FileGetLength
 
 
- LN2
- PI
- Pow
- Sin
- Tan
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice