Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Memory

Status
Not open for further replies.

amrassel

Programmer
Aug 28, 2000
1
US
I have written an app in VB 6.0 that displays customer activity. After the users enter the account number and the dates they want to see the activity for the first page comes up with basically their electric and gas usage. Then after clicking a command button, another form comes up with their dollars. I have the dollars in a datagrid and I am using a control array to display a calculated running balance. The problem that I am having is when a user is using the application, entering different account numbers("New" command button) and flipping back and forth between the different forms, part of the control array on the second page stops appearing. Is there some command that I can use when they click the "New" button to reallocate memory?

Thank-you,
Ann.
 

I would need a little bit more information to really figure out the problem. Although, a friend of mine had a problem simular to yours. He fixed it by ReDim the Vars and Strings being reused throughout the programs and varius forms.

Hope this Helps,

John Stephens
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top