Information générale
Catégorie:
Code, syntaxe and commandes
Versions des environnements
Network:
Windows 2008 Server
>>Can't see why that would be happening. What exactly are you seeing ?
>
>The same code is used when entering the form, in the related method, and in the save method when saving. In the save method, a direct reference to the class name would simply make the application to crash. Then, without changing any code, a minute later, when entering the form, I have an error about a runtime such as "No default member found for type 'RuntimeType'.". In overall, this is not safe as I believe we should always establish object reference to a class and negotiate with that instead of using a method name directly like that.
Just looked at the code you posted earlier. You should be passing the *type* of DataEntry to the method.
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