This is a effiency type question.
In a few of my web services I am coding this
dim stuff as new dsmydataset
'code to fill it here
return stuff
My question is that it is usually a good idea to deallocate the new
stuff = nothing
However you cannot do this in the above case. should I just ignore this or is there a way to destroy the variable after the fact.
Q2
The same type of situation as above, however instead of returning the dataset a boolean true is returned if the dataset contains anything. Presently for the check I just use
if stuff.tablename.count > 0
return true
Once again the problem of deallocating arises. Is it better to assign the .count to an int and the deallocate the object using the int in the if statment or to keep it as is.
That'l do donkey, that'l do
![[bravo] [bravo] [bravo]](/data/assets/smilies/bravo.gif)
In a few of my web services I am coding this
dim stuff as new dsmydataset
'code to fill it here
return stuff
My question is that it is usually a good idea to deallocate the new
stuff = nothing
However you cannot do this in the above case. should I just ignore this or is there a way to destroy the variable after the fact.
Q2
The same type of situation as above, however instead of returning the dataset a boolean true is returned if the dataset contains anything. Presently for the check I just use
if stuff.tablename.count > 0
return true
Once again the problem of deallocating arises. Is it better to assign the .count to an int and the deallocate the object using the int in the if statment or to keep it as is.
That'l do donkey, that'l do
![[bravo] [bravo] [bravo]](/data/assets/smilies/bravo.gif)