| Stonefield Query SDK |
| Application.ValidateCommonAppDir |
Parameters
A reference to the Stonefield Query Application object and the directory chosen by the user (terminated with a backslash).
Return Value
True if the directory the user selected is acceptable.
Example
Here's an example that checks if SECURITY.DBF exists in the directory the user selected.
Visual FoxPro
lparameters toApplication as SQApplication, tcDirectory return not file(tcDirectory + 'security.dbf')
VBScript
function Main(Application, Directory)
dim fso
set fso = CreateObject("Scripting.FileSystemObject")
Main = not (fso.FileExists(Directory & "security.dbf"))
end function JavaScript
function Main(Application, Directory) {
var fso, Found ;
fso = new ActiveXObject('Scripting.FileSystemObject') ;
Found = ! (fso.FileExists(Directory + 'security.dbf')) ;
return Found ;
}See Also
Application.ValidateTargetAppDir | Message for Invalid Directory | Scripts
| Last Updated: 01/30/2008 |