Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Is there a way to free up the memory used by the variables during run time?
#4
Solved: 11 Years, 3 Months, 3 Weeks ago
Hi Ritesh,

First of all sorry for my answer, you are correct 'Nothing' can be used only for Objects.

The solution for issue is here,

You should be Using 'Empty' to free up the memory for a variable

example:

Code:
Dim a

a= 120
Msgbox LenB(a)
' this will return 6. LenB means - "The LenB function returns the number of bytes used to represent that string."

' Now memory used by 'a' is 6 bytes.

a = Empty

Msgbox LenB(a) ' This will reture zero which means that the memory used by a is zero

Hope this will solve your problem.

Thanks
Vinod
Reply


Messages In This Thread
RE: Is there a way to free up the memory used by the variables during run time? - by ursvinod - 06-22-2009, 11:36 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Function That Creates WebLink Variables Eitel13 3 1,472 07-17-2018, 03:25 PM
Last Post: Ankur
  Trying to create List box in excel sheet at Run time with values yes No JACKSPARROW 0 1,707 01-17-2017, 11:05 AM
Last Post: JACKSPARROW
  HI, i'm having a run time error ,please help? Awzar 0 2,633 01-24-2015, 06:52 AM
Last Post: Awzar
  Maintenance free Automation, irrespective of any changes done on GUI siteshag 0 1,991 07-01-2014, 02:50 PM
Last Post: siteshag
  Loading objects in qtp at run time nitin 0 2,415 12-03-2013, 09:11 PM
Last Post: nitin

Forum Jump:


Users browsing this thread: 3 Guest(s)