LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 220
Default Copy Array pointer rather than entire array

I think that it is possible based on the following article:

www.ftponline.com/archives/premier/ mgznarch/vbpj/1997/10oct97/mc1097.pdf


But, I still don't know exactly how because playing with pointers in VBA
is dangerous -- I can't test methods of accomplishing this because
(since I don't know what to do), I encounter fatal errors fairly often,
crashing Excel.

However, I don't see any reason why we can't just set one of the array
variables equal to the other, change the original array so that it
refers to the null pointer, Erase the original array variable, and
continue working with the new array variable as if no funny business was
going on. That way, when VBA releases the memory allocated to the
variables, the original array won't release any memory since it refers
to the null pointer, and the 2nd array will release exactly what the 1st
array would have.

This may not work, I just see no reason (at this time) that it wouldn't
work.

I guess if I really want it as fast as I do, I should just learn a
language that natively supports pointers. =\
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Complex conditional summing - array COUNT works, array SUM gives#VALUE fatcatfan Excel Worksheet Functions 4 November 18th 09 06:41 PM
Prevent cell/array references from changing when altering/moving thecell/array nme Excel Discussion (Misc queries) 1 September 19th 08 01:53 PM
meaning of : IF(Switch; Average(array A, array B); array A) DXAT Excel Worksheet Functions 1 October 24th 06 06:11 PM
Filling excel entire row/column instead of single cell from an array shitij Excel Worksheet Functions 3 July 13th 05 07:44 AM
How do I return an entire row of data from a reference array? tvmodica Excel Worksheet Functions 2 January 7th 05 08:52 PM


All times are GMT +1. The time now is 01:28 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"