Hey DOC,
You must be running 3.62 'cause when I test with 3.62 I get identical results but with RC3 $chk is nul.

The interesting thing under 3.62 is if you init the variable at the beginning, as with:

$chk = ""

then it's null at the end.

If you change J's code at the end as follows:

? "NAV is " + $CHK

then it doesn't return a "0"

The real problem in J's code is with his first Select - Case group. He forgot the third possibility, that it is neither. One should always include a dummy Case, well, just in case (pardon the pun) none of the anticipated return true.

So, with Jochen's permission, I would like to amend a section of code as follows:

code:

IF @error = 0
$x = READLINE(1)
IF $x
DO
SELECT
CASE instr($x,"rtvscan.exe")
$CHK = "NAVNT"
CASE instr($x,"rtvscn95.exe")
$CHK = "NAV9X"
CASE 1
$CHK = "Neither"
ENDSELECT
$x = READLINE(1)
UNTIL @error
ENDIF
ENDIF


<edit>
I take this back. Read on...
</edit>

[ 02 October 2001: Message edited by: LLigetfa ]

_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.