Sign up on the Revelation Software website to have access to the most current content, and to be able to ask questions and get answers from the Revelation community

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

[email protected]


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.

View this thread on the forum...

  • third_party_content/community/commentary/forums_nonworks/403383136e750308852567a00063e0fc.txt
  • Last modified: 2023/12/28 07:40
  • by 127.0.0.1