Howdy,
While trying to set columns and rows within a table I have been getting
errors on the 3-6 loop on this code. It won't redraw the form properly. I
don't need a custom redraw function with the display data types only.....
do I??? Any help or direction to go would be a great help. thnx
row = DmNumRecords(DB);
for (x=0; x<row; x++){
Handle = DmGetRecord(DB, x);
UnpackAlias(&alias, MemHandleLock(addHandle));
TblSetItemStyle(tableP,x,0,numericTableItem);
TblSetItemInt(tableP,x,0,alias.member1);
TblSetItemStyle(tableP,x,1,labelTableItem);
TblSetItemPtr(tableP,x,1,alias.member2);
TblSetItemStyle(tableP,x,2,checkboxTableItem);
TblSetItemInt(tableP,x,2,0);
MemHandleUnlock(Handle);
DmReleaseRecord(DB,x,false);
}
TblSetColumnUsable(tableP,0,true);
TblSetColumnUsable(tableP,1,true);
TblSetColumnUsable(tableP,2,true);
FrmDrawForm(frmP);