Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Strict data types!
Message
 
 
À
23/05/2001 12:11:32
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00510429
Message ID:
00510443
Vues:
22
This message has been marked as the solution to the initial question of the thread.
>I was just reading an overview for the VFP7.0 release and it mentioned the use of strict data types. Now I know that sometimes the MS meaning of a term the remainder of the world's meaning are not always the same, so i ask...
>
>does this mean that i could do the following with out error?
>
>private int nCount
>if nCount = 0 && in VFP6 this will cause error because nCount would == .F.
> .

No. Strong typing is implemented in VFP 7 for Intellisense and type library generation only. You can do the following:

local nCount as integer
nCount = 2

There is nothing to prevent you from assigning .F. to nCount later in your code. However, the cool thing is if you do something like the following:

local oWord as Word.Application
oWord = createobject('WOrd.Application')

When you type oWord., you will get a complete list of available PEMs associated with the Word object. This makes for far greater productivity when accessing object hierarchy.

HTH.
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform