Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Can VFP determine MS Project version on a file
Message
De
12/02/2002 09:12:19
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00618395
Message ID:
00618789
Vues:
15
>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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform