HMG-specific GRID syntax help needed
Posted: Wed Dec 04, 2019 9:20 pm
On a form I have a grid (added using the IDE) to display a table (.DBF). However, when the form is run the grid displays no records.
The table, "All_Items", has 8 type character fields. Its records contain data.
When the form is run the grid's header displays fine but none of the records.
According to the debugger this table is in the current work area and is on recno() 1.
Below are some (likely) relevant lines taken from the .FMG. (For brevity below I have left out "default" lines that may not be the problem).
I do not understand my error(s). Can someone point out my HMG/Harbour syntax errors or omissions? Any help would be very greatly appreciated!
Kind Regards,
Red2
The table, "All_Items", has 8 type character fields. Its records contain data.
When the form is run the grid's header displays fine but none of the records.
According to the debugger this table is in the current work area and is on recno() 1.
Below are some (likely) relevant lines taken from the .FMG. (For brevity below I have left out "default" lines that may not be the problem).
Code: Select all
DEFINE GRID grd_Items
...
ITEMS {"MFG_NAME", "TYPE", "SERVICEABL", "DESCR", "MODEL", "LENGTH", "OAL", "SERIAL_NBR"}
WIDTHS {100, 100, 100, 100, 100, 100, 100, 100}
HEADERS {"Mfg. Name", "Type", "Serviceable", "Descr.", "Model", "Length", "OAL", "Serial Nbr"}
...
COLUMNCONTROLS {{"TextBox","Character"},{"TextBox","Character"},{"TextBox","Character"},{"TextBox","Character"} ;
,{"TextBox","Character"},{"TextBox","Character"},{"TextBox","Character"},{"TextBox","Character"}}
...
ITEMCOUNT 8
ROWSOURCE "All_Items"
COLUMNFIELDS {"MFG_NAME", "TYPE", "SERVICEABL", "DESCR", "MODEL", "LENGTH", "OAL", "SERIAL_NBR"}
...
END GRID
Kind Regards,
Red2