| Stonefield Query SDK |
| Application.ValidateTargetAppDir |
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 the correct one.
Example
Here's an example that checks if MYAPP.EXE can be found in the directory the user selected.
Visual FoxPro
lparameters toApplication as SQApplication, tcDirectory return file(tcDirectory + 'myapp.exe')
VBScript
function Main(Application, Directory)
dim fso
set fso = CreateObject("Scripting.FileSystemObject")
Main = fso.FileExists(Directory & "myapp.exe")
end function JavaScript
function Main(Application, Directory) {
var fso, Found ;
fso = new ActiveXObject('Scripting.FileSystemObject') ;
Found = fso.FileExists(Directory + 'myapp.exe')
return(Found) ;
}See Also
Application.GetDefaultTargetAppDir | Application.ValidateCommonAppDir | Message for Invalid Target App Directory | Need Target Application Directory | Scripts
| Last Updated: 02/05/2008 |