[futurebasic] Re: [FB] rect -> array

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : September 2004 : Group Archive : Group : All Groups

From: Adam Bell <abell@...>
Date: Fri, 03 Sep 2004 16:01:59 -0300
Thanks, Jay, Robert - it was the @ that was my problem. Things like 
that aren't in Help and I couldn't find an example.

I don't mind MyRect.bottom per se - I just used it as an example. I 
was trying to "twiddle" a bunch of rectangles in a loop structure for 
a display of a tank filling.

****

Minor wish for FutureBASIC 4+: Make scroll wheels work in the edit 
window. I'm so used to my 4-button Logitech wireless mouse that I 
spin the wheel three times before I remember to go to the scroll bar.

****

If those of you that have multi-button USB mice aren't using USB 
Overdrive or something like it to customize your mouse's extra 
buttons for different applications, you're missing a real convenience 
http://www.usboverdrive.com/.

Adam

At 2:12 PM -0400 9/3/04, Robert Covington wrote:
>On Friday, September 3, 2004, at 01:52  PM, Adam Bell wrote:
>
>>If I have a variable myrect, say, dimensioned as rect, whose values 
>>are returned from a toolbox call for a display's dimensions, for 
>>example, and if I print it, I get four numbers in parentheses, 
>>(n1,n2,n3,n4) which I know are left, top, right, and bottom 
>>coordinates for the display.
>>
>>myrect does not behave as an array, however, in that I cannot refer 
>>to myrect(4) and get back the last (bottom) coordinate for the rect.
>>
>>How then do I put these coordinates into an array without referring 
>>to them specifically as myrect.bottom, etc.?
>>
>>Further; is there a "dim as" construct for arrays or is it still 
>>"dim myarray%(a,b)" for example? (I'm very rusty and haven't yet 
>>learned where to look for such answers when they aren't in 
>>FutureBASIC Help).
>>
>>Adam