The TransactStreamToClient function allows the content of a variant variable to be transferred as a file to the client.
Syntax | |||||
TransactStreamToClient(DestFile, Data [, CreateDirectory] [, RemoveOnClientClose]) | |||||
Return value | |||||
Type |
Description | ||||
Long |
0 if function could be successfully executed | ||||
Parameter | |||||
Use |
Name |
Type |
Passing |
Description | |
Required |
DestFile |
String |
ByVal |
Path to the file at the client. See Note. | |
Required |
Data |
Variant |
ByRef |
Data | |
Optional |
CreateDirectory |
Boolean |
ByVal |
Create directories with the client if required | |
Optional |
RemoveOnClientClose |
Boolean |
ByVal |
Remove file if the client is closed | |
Note
The file path is only allowed in absolute form (with drive specification or one of the following key terms).
Begriff |
Description |
[TMPDIR] |
Current temp directory at the client or server The directory is often located in the user directory, e.g. C:\Users\Benutzer.Domäne\AppData\Local\Temp |
[APPDIR] |
The TCE program directory at the client or server, often C:\Program Files (x86)\TAP.CON\TCE |
[WINDIR] |
The Windows directory at the client or server, often C:\Windows |
[SYSDIR] |
The system directory at the client or server, often C:\Windows\System32 |
[APPDATADIR] |
The application data directory at the client or server, e.g. C:\Users\Benutzer.Domäne\AppData\Roaming |
[PROGDATADIR] |
The program data directory at the client or server, e.g. C:\ProgramData |
Return of the function is 0 on success or the error code of the transfer.