Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Legal coding of As clause (re (strong) typing)
Message
De
19/07/2001 11:09:51
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00532549
Message ID:
00532588
Vues:
11
>>I have been going through the new VFP documentation supplied in the July 2001 MSDN Library.
>>
>>While I see the new "As" clause for LOCAL, LPARAMETERS, PARAMETERS, etc. I cannot find anything that explains/describes how/what can be coded there.
>>
>>Under the topic "Strong Typing in Class, Objects and Variable code" there are examples such as:
>>PUBLIC ARRAY MyArray[2] AS _form OF ffc\_base
>>
>>LPARAMETERS MyParam1 AS string OF _base.vcx
>>
>>PARAMETERS MyParam1 AS custom OF Mybase.vcx
>>
>>Any help appreciated.
>>
>>JimN
>
>Jim,
>Any valid variable data type can go there (Datetime, Character, Logical, Void). Statements like this are more for the TypeLib declarations (IMO). In addition, a PrgID for a COM class or a VFP class and class lib can be used. Statements like this are more for Intellisense.
>
>HTH.

Yes, it helps Larry.

But, for instance, I've seen "VOID" coded in examples through the years and always just sloughed it off as 'just C code that I needn't concern myself with'. Now, to exploit Intellisense, I have to concern myself with that "stuff".

I have no idea what "VOID" actually means and why I would use it. Something that describes whats valid and what it describes (means) is what I hope to find in the docs.

Thanks
JimN
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform