Information générale
Catégorie:
Code, syntaxe and commandes
Hi Kevin,
I actually had to add "static" back to the declaration. After removing "static" it seemed to work until I went to use the variable in another one of the methods of the class. The method is a static method is this the reason? Any other reasons for this?
Thanks,
Paul
>Glad that worked.
>
>Without seeing the code, I can't guess why it would be static.
>
>The only time I use static is for static properties in a 'global' class. I'll set properties to a particular value at startup, and want to be able to read them in other parts of the app.
>
>Kevin
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement