Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Can VFP determine MS Project version on a file
Message
From
12/02/2002 09:12:19
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00618395
Message ID:
00618789
Views:
14
>The code above needs to be modified to:
>
>
>nGFH = fopen('C:\Temp\Project2.mpp')
>lcCheck=UPPER(fread(nGFH, 6000))
>fclose(nGFH)
>lFound = .F.
>#define C_MSP 'MICROSOFT PROJECT'
>FOR i = 1 TO occurs(c_msp, lcCheck)
>  nFoundAt=atc(c_msp, lcCheck,i)
>  if "8.0" $ substr(lcCheck,nFoundAt,21)
>    lFound=.t.
>    EXIT
>  ENDIF
>ENDFOR
>return lFound
>ENDIF
>
Ooooops, you're right about the second parameter of substr(). Upper in the second line is not needed, because atc() is case insensitive.

So did this work for you?

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform