Hi there all good people,
I am using a lot of excel objects, and to be sure all have been completly closed i am using marshall realase inside finnaly block of try.
Some time ago i found out about using clause which is implementing Dispose automatically when using clause is ending. Could you tell me if this is really best why to realase objects e.g excel or other i mean if i put my code inside using clause it is for sure that every object would be realased? My question is because i heard somewhere that using clause is the same as realase some objects like in Finally clause of try. Could you follow me up about that?
P.S Another question regarding Len function - in documentation i read that the function is for strings. So every time i when i want to count lenght of integer i am always firstly converting the integer to string and then use with Len, is there another function like Lenghth for strings - for integers?
br
I am using a lot of excel objects, and to be sure all have been completly closed i am using marshall realase inside finnaly block of try.
Some time ago i found out about using clause which is implementing Dispose automatically when using clause is ending. Could you tell me if this is really best why to realase objects e.g excel or other i mean if i put my code inside using clause it is for sure that every object would be realased? My question is because i heard somewhere that using clause is the same as realase some objects like in Finally clause of try. Could you follow me up about that?
P.S Another question regarding Len function - in documentation i read that the function is for strings. So every time i when i want to count lenght of integer i am always firstly converting the integer to string and then use with Len, is there another function like Lenghth for strings - for integers?
br