Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Strict data types!
Message
 
 
To
23/05/2001 12:11:32
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00510429
Message ID:
00510443
Views:
21
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform