Xbasic
A5_IS_PATH_VALID Function
Syntax
Result_Flag as L = a5_is_path_valid(C path_name )
Arguments
- path_nameCharacter
The drive and path of a folder.
Returns
- Result_FlagLogical
Returns .t. if the path exists. Otherwise, returns .f..
Description
The A5_IS_PATH_VALID() function indicates whether a directory exists.
Example
? a5_is_path_valid("c:\temp") = .T. ? a5_is_path_valid("f:\temp") = .F. if (a5_is_path_valid("c:\mydir") = .f.) then ' Path is not valid ui_msg_box("Folder missing", "The path 'c:\mydir' doesn't exist.") end if
See Also