In a message dated 3/27/98 10:11 PM, JoeAtTIME wrote: >I have been getting around this by using a constant larger than I think I >will >ever need as the XREF argument. Is it true that you can not use a variable to >tell FB how many elements are in the array? Not in the DIM statement. For XREF arrays, what you do is DIM the array to have more elements than you will possibly use. What you are actually doing, it setting the _limit_ for the array, not the actual number of elements. The size of your pointer (or handle) determines the actual number of elements in your array - not the number you supply in the DIM statement. ===================================================== | David Blache - Software Developer | ===================================================== | Microcosm Software, Inc. - Owner | | microcsm@... | | http://www.thesanctuary.com/microcosm | |---------------------------------------------------| | Staz Software, Inc - Stazologist | | tech@... | | http://www.stazsoftware.com | =====================================================