Hi.
I have an application with a global array of objects (Routes). In a function, I declare a local route:
Dim RouteLocal as Route
Set RouteLocal = New Route
I then assign a value (a route) from my global array to the local route:
Set RouteLocal = gRtPd(ndx)
When I manipulate a value in RouteLocal, it alters the value in the public array gRtPd(). Why? The whole point of the local route was to manipulate the values without affecting those in the global array. How can I change this behavior?
I have an application with a global array of objects (Routes). In a function, I declare a local route:
Dim RouteLocal as Route
Set RouteLocal = New Route
I then assign a value (a route) from my global array to the local route:
Set RouteLocal = gRtPd(ndx)
When I manipulate a value in RouteLocal, it alters the value in the public array gRtPd(). Why? The whole point of the local route was to manipulate the values without affecting those in the global array. How can I change this behavior?