comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » help with relational operators
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
help with relational operators [message #16180] Thu, 08 July 1999 00:00
dmarshall is currently offline  dmarshall
Messages: 23
Registered: December 1997
Junior Member
I'm getting near wits end.

repeat begin
...
; get user to input file name
...
dataFName='somefile.xdr'
...
fileCheck=findfile(dataFName)
if fileCheck eq '' then print, 'error: ', dataFName,' file not found'

endrep until fileCheck ne ''

% Expression must be a scalar in this context: <BYTE Array[1]>.

I just want to verify the file exists before opening it.
This gives my error message if file does not exist, but craps out if file
does exist.

help, fileCheck ne ''

tells me it _is_ a scalar expression. ?

I'm using Student Version 5.0 on MSWin95

Dave.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: help with relational operators
Next Topic: Re: linkimage difficulties: mixed case and multiple libraries

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sat Oct 11 00:54:45 PDT 2025

Total time taken to generate the page: 0.40105 seconds