accessman2
Registered User.
- Local time
- Today, 06:01
- Joined
- Sep 15, 2005
- Messages
- 335
Hi,
I have a problem.
dim arr() as variant
redim arr(2)
arr = array([n1],[n2],[n3])
for i = 0 to 2
' section 1
if arr(i) = 1 then
...............
Me("n" & i) = -1
....
end if
' section 2
if arr(i) = 300 then
...............
Me("n" & i) = -1
....
end if
next i
The question is that
after the section 1, the array value will automatically update immediately, so, the when I check the section 2, the orginal values are replaced by section 1 results.
So, how can I keep the constant array values forever in the function?
Thanks.
I have a problem.
dim arr() as variant
redim arr(2)
arr = array([n1],[n2],[n3])
for i = 0 to 2
' section 1
if arr(i) = 1 then
...............
Me("n" & i) = -1
....
end if
' section 2
if arr(i) = 300 then
...............
Me("n" & i) = -1
....
end if
next i
The question is that
after the section 1, the array value will automatically update immediately, so, the when I check the section 2, the orginal values are replaced by section 1 results.
So, how can I keep the constant array values forever in the function?
Thanks.