Purely for efficiency I used the following (edited for relevance) code that uses standard traditional vb stuff -
Dim intTestWord As Integer = &HFFFF
REM <cut...>
FileOpen(1, sFileName, OpenMode.Binary)
FileGet(1, intTestWord)
FileClose(1)
If intTestWord = 0 Then
MsgBox("Sorry, this program only works with uncompiled models" & Chr(13) & Chr(10) & "and that file appears to be compiled!", MsgBoxStyle.Exclamation)
Return
End If
This appears to work. BTW in VB2008 an integer is 32 bits. Back to writing the manual...
TR