[futurebasic] XREF question

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : March 1998 : Group Archive : Group : All Groups

From: JoeAtTIME <JoeAtTIME@...>
Date: Fri, 27 Mar 1998 23:11:39 EST
I don't quite understand XREF and I hope some one can give me some tips. As I
understand XREF allows you to use a Pointer as an array of any kind of
variable. Can you XREF an array of records too? 

Also when I use a variable as the argument in the XREF command like this: XREF
Array%(numInArray), FutureBasic gives me this confusing error message: "DIM
requires numbers or constants when defining an array. Use XREF instead of DIM
if the array is dynamic."

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?

Thanks for any help,
-Joe Lertola