Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Retrieving the operating system version
Message
De
16/05/2005 05:56:43
 
 
À
16/05/2005 05:34:43
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 8 SP1
Database:
Visual FoxPro
Divers
Thread ID:
01014497
Message ID:
01014504
Vues:
27
>I need to know which Operating system is running on a PC,
>I know I have to Use OS() but how can I tell which is the OS ?
>I mean which number is associated to W98 or Win ME whhere can I find a table
>whith the code numbers of the Operating Systems ?
>thx

This is what I use
*-----------------------------------------------------------------------
#define VERSION_OF_WINDOWS	(val(ltrim(substr(os(), at(' ', os())))))

#define	WIN95_VERSION		4.00
#define	WIN98_VERSION		4.10
#define	WINME_VERSION		4.90
#define	WIN2K_VERSION		5.00
#define	WINXP_VERSION		5.01
#define	WIN2003_VERSION		5.02

#define	WIN98_OR_HIGHER		(VERSION_OF_WINDOWS >= WIN98_VERSION)
#define	WIN2K_OR_HIGHER		(VERSION_OF_WINDOWS >= WIN2K_VERSION)
#define	WINXP_OR_HIGHER		(VERSION_OF_WINDOWS >= WINXP_VERSION)
*-----------------------------------------------------------------------
Gregory
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform