JunglesMcBeef
Programmer
- Sep 18, 2003
- 266
G'day,
I have created a type and created an array from that type in the general declarations. I have 2 event procedures invoked with a respective command button each. The first procedure fills the array with the current text box values on the form (only one record ie one element of the array). I want my array to be able to hold the values between calls so I can use the second procedure to write the contents of the array to the table after using the first procedure to fill the array with many items. What I guess I am trying to say is whether or not you can declare a static variable outside of a procedure and what to declare it as. Or can anybody suggest a better way to get around this?
I have created a type and created an array from that type in the general declarations. I have 2 event procedures invoked with a respective command button each. The first procedure fills the array with the current text box values on the form (only one record ie one element of the array). I want my array to be able to hold the values between calls so I can use the second procedure to write the contents of the array to the table after using the first procedure to fill the array with many items. What I guess I am trying to say is whether or not you can declare a static variable outside of a procedure and what to declare it as. Or can anybody suggest a better way to get around this?