[futurebasic] Printing questions

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : August 1999 : Group Archive : Group : All Groups

From: Stewart <stharris@...>
Date: Mon, 02 Aug 1999 15:48:35 -0400
Hello all, I need more HELP.

In trying TO figure how TO PRINT a spreadsheet type of arrays, I started
TO examine the example code that IS available from so many sources. I
found FN PrintFB

First LINE, FieldHndl&=[WNDBLK+WindowNumber%*16+5] stopped me.

The reference manual says that WNDBLK returns a pointer TO the
compiler's window record. If that is the case, how does one get a handle
by dereferencing a pointer? I thought deferencing a pointer got you the
data address.

THEN came:
1       FieldPtr&       = [[[FieldHndl&]+8]]
2       FieldNumber% = {[FieldHndl&]+4}           'FIELD NUMBER
3       FieldType%     = PEEK([FieldHndl&]+6)     'FIELD TYPE
4       FieldJust%     = PEEK([FieldHndl&]+7)     'FIELD JUST

 1. I would have thought one deref rather than 3 would be enough TO GET
a pointer unless the pointer IS stored in the WINDOW RECORD, but THEN
how would the memory manager GET access TO itPRINT
 2, 3, 4. Looks like another defer IS needed.

MAYBE IF I could PRINT out a WINDOW RECORD it would HELP me TO

I will appreciate any HELP OR insights. Thanks.