File/Path Validation (OpenInsight Specific)
At 30 JUN 1999 02:10:56PM Bruce Lee wrote:
Hello,
I am searching for a utility in Openinsight to validate a file path typed in an edit box. I am able to use Choosefile to do this; however, I need to also trap any typed-in input.
Thanks Bruce
At 30 JUN 1999 03:43PM Matt Sorrell wrote:
Bruce,
Don't particularly know about OpenInsight, but I do this in AREV by executing the DIR() function using the value type into the text box.
If DIR() returns information, then the file exists. If it doesn't return anything, the file doesn't exist.
Matt Sorrell
At 30 JUN 1999 04:03PM Oystein Reigem wrote:
Bruce,
Matt's solution will work for short names, but not for long names (and names with a space in them - same problem as with long names). But Eric Emu suggested a solution for me once (for something else really) that I think could be used in your case also:
Invoke a "dir … ] temp" on the folder containing the file and then osread & parse temp. The dir command will list both short and long names.
- Oystein -
At 30 JUN 1999 04:16PM Don Miller - C3 Inc. wrote:
You can always try an OSOPEN on the file and check for an error.
Don Miller
C3 Inc.