|
|
|
|
|
- Operating mode in Windows Vista (and later)
<DiskFile variable>.ChangeSize (Function) In french: <Variable FichierDisque>.ChangeTaille Resizes an external file.
MonFichierTxt is DiskFile
IF MonFichierTxt.Open("C:\MesRépertoires\Fichier.txt", foReadWrite) = True THEN
Res = MonFichierTxt.ChangeSize(200)
...
END
Syntax
<Result> = <File used>.ChangeSize(<New file size>)
<Result>: Boolean - True if the size changed,
- False otherwise.
<File used>: DiskFile variable Name of the DiskFile variable initialized with <DiskFile variable>.Open or <DiskFile variable>.Create.
<New file size>: Integer New size of the file in bytes. - The file is truncated if the new size is less than the initial size.
- If this new size is larger than the original file size, the file is enlarged: the content between the old size and the new size is not defined..
Business / UI classification: Business Logic
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|