Products Downloads


French version


 

 

This function is used to retrieve the current directory.

 

Context

  • Windows client,

  • Windows server,

  • Mobile client,

  • Mobile server,

  • Java client,

  • Java server,

  • Adelia Web client,

  • Adelia Cloud client.

 

Parameters

ALPHA(n)

CurrentDirectory

Current directory.

Output parameter.

NUM_BIN_4

Len

Variable length.

CurrentDirectory (n).

 

Note on Java support:

The VaToolBxGetCurrentDirectory functions returns the value of the 'user.dir' system property. Because this value cannot be changed (not supported by Java), VaToolBxSetCurrentDirectory is not supported with Java.

 

Note on Mobile support:

The concept of "current directory" does not exist with Windows Mobile. The VaToolBxGetCurrentDirectory function is emulated by the Mobile runtime, however. This means that the application's launch directory can be retrieved, enabling resources (e.g. a parameter file) to be located relative to this directory. Note, this is not the current directory; relative file names are always calculated relative to the root of the file system.

 

Example

ALPHA(256)

Directory

NUM_BIN_4

Len

 

 

* reads the current directory

Len

= 256

CALL_DLL

'VaToolBx' 'VaToolBxGetCurrentDirectory' Directory Len

 

 

List of functions in the VaToolBx DLL by topic

↑ Top of page


  • Aucune étiquette