BBjClientFileSystem::getClientFile
Description
In BBj 7.00 and higher, this method returns a BBjClientFile that represents a specific file on the remote computer.
Syntax
|
Return Value |
Method |
|---|---|
|
getClientFile(BBjClientFile parentDir!, string filename$) getClientFile(string absoluteName$) |
Parameters
|
Variable |
Description |
|---|---|
|
parentDir! |
The parent directory of the desired file (ignored in BUI). |
|
filename$ |
The name of the desired file, relative to the parent directory. |
|
absoluteName$ |
The absolute file name of the desired file. |
Return Value
Returns a BBjClientFile that represents the specified file.
Remarks
Neither the returned BBjClientFile nor its parent need exist. Use the BBjClientFile::exists() method to determine whether a file exists.
In the BUI client, both
filename$
and
absoluteName$
are simple names, not complete paths,
and
parentDir!
, if specified, is ignored. The specified
filename is used as a key to a collection of user-selected files on the
web server.
Example 1
demonstrates a complete end-to-end cycle
to copy a selected file from the client, then copy a selected file to
the client; it shows that files copied from the user's machine must first
be directly chosen by the user. See
Interacting with client files in BUI and DWC
for a discussion of the BUI BBjClientFile.
Example 1
|
Example 2
See Also
See the BBj Object Diagram for an illustration of the relationship between BBj Objects.