Products Downloads


French version


 

 

This function is used to retrieve the size of a file.

 

Context

  • Windows client,

  • Windows server,

  • Mobile client,

  • Mobile server,

  • Java client,

  • Java server,

  • Adelia Web client,

  • Adelia Cloud client.

 

Parameters

ALPHA(n)

File

Name of the file to be tested.

NUM_BIN_4

Size

Size of the file in bytes.

Output parameter.

NUM_BIN_2

ReturnCode

Return code for the operation:

 0  Operation completed successfully.

-1  Unable to open the file. 

-2  A system error occurred.

Output parameter.

 

Example

ALPHA(256)

File

NUM_BIN_4

Size

NUM_BIN_2

ReturnCode

 

* Retrieval of the size of file 'c:\temp\test.txt'

File = 'c:\temp\test.txt'

CALL_DLL 'VaToolBx' 'VaToolBxFileSize' File Size ReturnCode

IF ReturnCode <> 0

    Error processing...

END

 

 

List of functions in the VaToolBx DLL, organized by theme

↑ Top of page

  • Aucune étiquette