Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Naming conventions for custom methods?
Message
 
 
À
18/11/2008 12:26:51
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
01362229
Message ID:
01362732
Vues:
23
>>I agree, but you don't need to assign a value to MyString when you declare it. You can do it later in the code. I don't really see a difference between string and var here. In either case, you're not going to just define the variable. You're always going to assign a value and use it someplace.
>>
>
>I'm sorry Craig,
>
>You have to assign a value when you declare it.
>
>This won't compile
>
>var xxx;   // Implicitely-typed local variables must be initialzed
>
>
>xxx = "p";
>
string xxx ;

will compile just fine.
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform