Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Strong declaration?
Message
De
05/09/2001 16:32:56
John Deupree
Long Term Care Authority
Tulsa, Oklahoma, États-Unis
 
 
À
05/09/2001 16:06:16
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00552778
Message ID:
00552802
Vues:
15
Ramil,

Do a search for 'strong typing' in the VFP 7 help. It gives a good explanation of VFP's support of the AS clause.

John

>Hi all,
>
>What is the difference when declaring a variable using AS option and not using it?
>
>
>local m.myInteger
>?type('m.myInteger') && 'L'
>
>local m.myOtherInteger AS Integer
>?type('m.myOtherInteger') && 'L'
>
>
>I was hoping that on the second declaration, m.myOtherInteger would have defaulted to 0. Aside from knowing that the variable will become an integer somewhere in the code, I don't see any advantage to declaring it with the AS keyword.
>
>Thoughts please.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform