Information générale
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Network:
Windows 2008 Server
>>Dennis,
>>
>>In any reason get rid of the return within a with..endwith statement, if it does not result in a C00005 error now it will end up the next day.
>>Rgds,
>>Koen
>>
>>
>
>That's strange. I never run into this and I must have RETURN inside WITH .. ENDWITH countless times. I feel uncomfortable now.
We had quite a few of those until my coworker back then ran into the situation, that the datatype of the returned variable was not correct.
She called me over, we both stared rather unbelieving at the screen. I played with the code for 30 min to make certain it was not just a side effect of something goofy done before but overlooked, but found nothing. Returning the same variable at the end of the method resolved the glitch.
So a large project had to be cleaned afterwards - I still remember writing some code to flag suspicious early returns and compare the lineno with the last endwith.
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